$(function() {
	// 全局变量保存新增用例的id
	addBaseCaseId = "";
	// 当前是否可以编辑
	baseCaseEditeBool = true;
	// 基本用例基础信息
	baseCaseData = [];
	// 保存画布上所有的用例元素
	caseElements = [];
	// 保存画布上所有的用例元素类型
	elementTypes = [];
	// 初始化用例元素对象为空
	elementData = [];
	// 当前左侧选中元素要拖入画布
	currentObj = {};
	// 条件组合ID
	caseElementValId = "";
	//获取历史复制的基本用例控件
	storageBaseCase = [].concat(JSON.parse(window.localStorage.getItem("storageBaseCase")));
	// 画布宽度，默认值8888
	canvase_width = 800;
	$("#canvasDiv").width(window.innerWidth - 606>800?window.innerWidth - 606:800);
	$("#canvasId").width(canvase_width);
	// 右侧画布画底图
	mycanvas = $("#canvasId")[0];
	mycanvas.height = 750;
	mycanvas.width = canvase_width;
	context = mycanvas.getContext('2d');
	tDrawCanvas = new TDrawCanvas(mycanvas);
	stroke = '#000000';
	//设置中间区域为焦点
	$("#editContentCenter").focus();
	//获取绘图的初始值
	firstGetCanvaseWidth = false;
	// 检查点选中关系
	andorVal = "";
	// 条件轴的右侧属性数据对象
	conditions = null;
	// 分支和循环控件的头填充颜色
	titleBackGround = '#222222';
	// 分支和循环控件的头文字颜色
	initFontColor = '#00AAAA';
	// 分支和循环控件的字样式
	initLabelStyle = '14px Arial';
	// 分支和循环控件宽度
	banchLoopWidth = 100;
	// 分支和循环控件的高度
	banchLoopTitleHeight = 30;
	banchLoopHeight = 55;
	//条件控件下方矩形默认高度
	banchLoopBottomHeight = 25;
	// 控件与控件的间距
	betweenTool = 15;
	// 小矩形控件的高度
	rectHeight = 30;
	// 小矩形控件的宽度
	rectWidth = 80;
	//容器控件中的条件的第一个位置
	conditionPostion = {x:31,y:4};
	//条件控件之间的间隔
	conditionSpace = 23;
	// 当前选择的图形的id
	selectTargetId = '';
	//记录历史选中
	currentSelectTargetId = "";
	// 当前选择的图形的数据
	selectTargetData = null;
	//记录历史选中
	currentSelectTargetData = null;
	//是否为拖拽状态
	dragFlag = false;
	//初始化获取的N个随机id
	UUIDList = [];
	//下拉框的数据数组
	selectAllListData = [];
	//条件控件的的关系
	conditionSelectList = [];
	//当前选择的子对象的父节点数据
	childToParentData = null;
	//条件控件中数据项数据数组
	shuJuAllDataArray = [];
	//复制时的赋值
	copyObj = null;
	//点击选中画布的坐标
	selectLoctionX = 0;
	selectLoctionY = 0;
	//获取条件控件中数据项的下拉切换时的数据状态信息
	getShuJuXiangMsg();
	//保存基本用例失败的提示
	failMsg = '';
	//加载图片完成个数
	imgCount = 0;
	//LKJ控件中根据软件类型存储文件的数据
	storeVersionByType = [];
	//拖拽画布中的实时坐标
	dropPointTarget={};
	//循环标示
	imgXunHuan = new Image();
	imgXunHuan.src = '../../images/xunhuan.png';
	//分支标示
	imgFenZhi = new Image();
	imgFenZhi.src = '../../images/fenzhi.png';
	//条件控件
	imgTiaoJian = new Image();
	imgTiaoJian.src = '../../images/tiaojian.png';
	//引导箭头
	guideJianTou = new Image();
	guideJianTou.src = '../../images/jiantou.png';
	var uuidStr = "E75C80D5B45044B584447AF1EC7B3AF8,E554DAC5E41B4D8EB7E6EEB127C6637D,6010AFC58CDF4EAFBACAE8AD2985C69C,E0DCB94B07FD4C4DB64EBFD030BD2836,68954770C03C4B51B3572CFB6106E820,502C3A1C5F194022BDCCAF5EA1307C17,A3751D50E1924B82B5D39F01AA751485,B80A5515DA8F465E970C7930A5FCB5D5,C79DD0CA317F4A73BCAFDAA164BAC1F6,1207E0B2802E457CAB5DBCA42CB38D86,7FA0545427D34433A26DB9C7DEBAD256,212DFAB0821A47989F82CB6EF1CC9545,F529F152DF054582AE49C0E7BA6F32EA,6CF7644DDF264E659E29EFDE3DC80D17,F39AABEBFC12494C9999F3552284E1F0,CFEECDB0EFAF47089855C51DB6E87540,1128CCF961D542C8B60DAF7BC3B09609,A0E3680613F04E8DBD2F34C8F332F84A,AFB0FA9BDA9346C1B5D6B430BBE2D4AA,4FF7F0E7CD864A56AC6A703630148D73,E9E2145DF0B04137BCA17077D05B5BAF,1A196ABA3F3A48C383A26788B86DA140,D505BD22D5C14EB38CAEDA842A66E8F6,3BB7794FCAEB468E98662B5CC3223A16,746FB6959F6349EAAE26DBF3113E4FCA,521E0D1D1F0C4165BE40EF0B460867CF,2FFC4033AA904AFE93A29A2F508ADFE5,2CFC8C0CE8C34DF7BB6C0B46AB48C63F,F0391E99447B453E93223C442EF20E71,43F54C1823574804A7A988EB47C944EA,3ED5A21C2EA94EE1ABF8F7E87034A7FB,8E7F3E377A1740CE812B4C9494E0489F,62B2F98E28D6421696D719D7F78BE405,B687E5C01AAC41A3ADCB8E622F884ADE,B7B2B6C30AA14E5297E97FE34E41A5DC,B1023FDA76984D0AB03C64120F92B239,8EAB9C04A56745B9AD09C36AE3304791,292F93E7125941EDADFD0FD1D82D56C9,8A7AFF5F96464ED48F9512EC3CCBC709,89CA7282A73D4B8AAB9547B410216316,3DE97AB21DAF4147B705C1ABB2E69A29,67737AB5B8F140A19042FF0F107AC6B0,5CCE81872D1E41C385C67A0FAC54CF0D,562F4E29C503434DA16AB4402F7340F5,CF32209FD4AD45A4B5A5EC95D72A023C,A9A4AAB4EAFB44A1801EAEA59830DD63,22C052E68F12418EB59768CF24F965AF,00C07E41B3F746E8BFFBC5D9A8D99B0A,7BADEDBF81BE4935AE4F7278213CAF82,0970DFDCB142478D9C48A82D7B676E5B,7EF476A60B9D4E8583FC4CE86B2E14B4,3D14CF6F2D4A4519AECC8C4C721FCD39,CCB8D928F55947308BBB5736792F00D4,76C99B5246D64BA6A97FF73B65C85C25,FDC208036C5D4A5FA330FC19AB04770D,882639FD0B504213A4452DAFA3CEBF2F,FBE2636066704F149A272A45B05BDCA2,F9F9DA2DD5AC43EFBAE0A870457EC3C2,73AEF1B46D094793AF306929FCFCAC99,3BFCAB0E3ACC462FB9F4A30864C2886B,D5D242EA1CEB427CBEFDE1C37B1D8018,C4A3580C7F3A454B85B77F199AB3CDB2,6AC5499E3A904C4F89C7EC1CEB219B89,2AA6AAB9D9C24A6BBF80C917C19F3D93,A32CA91B43D34AE38A96FDC4F637A254,644DAFEB59F542508F41048533841F5F,FF728C53BC184FE8AC46A3B45F9DCD51,C9821B9F9ADD4628BD5C0BB987C20E15,01D21A97F4B9496F89A4AB393F9132C9,1592E0CFE9964DBA9D4DF64E0FA94490,A3C8994C480E43CE9EF60F162A23A24C,0E6BFA306EE642DE83B16792F170847C,17F121EEC47744C895359766AD71E02C,DA2F5820EEF34921A7957D9F7FAAF9DC,A66462C92E2243AC980679248625181A,736BEB84EAD04DF69E21EA0719E75964,FCA0106938044751841BC69E29C8617C,44309F00973A4B0AAF3BC1462F618DF6,1ADFBA8B1C5241248A48CF3E60D1DA59,0F655620286D48428B72FAD128ACC46B,F64F002509F348CEB98273F1633B35F5,AC97B52369BC4677828971F44349D3E8,D3B84F4CF3784E848E8E2BCFC845B4A9,021C405C1D234027A25C204933C3BDC9,DBAB403A3176446EA643CAF9755E495C,4A22FA711D754FF2A0D83003655DE856,C5F0CDB179B34B089E9ED544CDFE646C,3336AFE30C964070BB99F4FCC288F74F,E4E999D6F3BB4D208B5245B1AE1EC19D,895B827393E2405C892204E723951DBF,38A7F538ADDB4F8F8521109ACBCC7577,3CFB46967A8149F1A1E7A81BA69CDBA2,50EE564D10DA490C99224B87F09550E2,5C431F2097AA4A8CBEE61622EAEBB24A,354ABC7AB4144BB19A3D1DAF87EC38CA,A52F856541B94C1698529721846AF2EA,C295D7B80B6647C5A84CB1C44DA1E605,C10E5CC2F4874B1AB0441CB2BD570C51,D0D9604AE9E04F479EDC5DB86C620C30,7A630942BEFF4005AFCB218C9A6FE710,C391B5A594F84F7790ED09A988C90447,B34023785A1F4010B59238BCC4D73E8B,5E9DFD1E92F940FE89427C9402E142E5,8624871DC0CE49C7A52C143107D6A6EB,06741F38783C4246BBBBE559BF496F04,AF36492B8F094668B633B9C751C47B99,813A19E003AE435BADEBBBDBA437A5F6,4FCDD2EC7B6C4F4CB46AFD1BB47D9EA2,AE95FB769437429B808537797719F5DF,119D497CB71C4BB3A78F6567A71445B3,C37260E2BA8B41F68F9D49DD4CA78399,CFDC992FE207447C8C4011C2AE2FBBE3,C33D4318D1454318AD4A1AB545024385,9592AD1F86614EE7BFB96FCD573133BD,29AEC129874D44A690CC4EA8F08AAC40,BD7AA9E66DDD47EB9D84522BD22D0B3D,FC871A18848D4D34B8BE44B6857A6947,7D6401349BB74DA8A8D68E251DA65098,8AE07678675C4E168705480A438D4943,51394F07B43A4DD19511CC4769F41FBB,C2A1B19954F3489A9C9710E75F613581,D77201071D5E45059F2DD0F8B670DFD4,444AB9E32E8247839F057805634850FA,B2FF4FC701534A36B932A637DA77C81B,769D2C52281146608531DABB18F001DD,4E9AE6CA99404B3CB49BB9D534AADC48,850C0E2C7106495A812B990963227CC3,A522ADE8B30D4CB3B31EECF70E401F2C,C769EF0576CF4580A81DCFF354C38A96,C97110C974B14A17B91860C0AC337590,DB794A88ADEF4DFF87BD88FC845D2282,C15374139F2544A9AD78B757BAE81836,6C4BAF5E0F584A2A89F7EBE24A3BF0D9,B954FBF863C845738059C05A114C0F39,84DFED8A7DFD414693295E8CE2CC6D4D,213CA43FE66E4EC8A7382C08A721F7DC,9C669D641F344B73B2B66DBCF9EBB327,F65F2C694E234B828A9C4182A2FA8D39,FCFE7131B4654DC7917198DBCDBE3D34,7E04ACDDE5314B79BCE90BEAAE0F9695,0FE999CB1856487DAE89A293FEC69EE2,CC6D170BB73141F480FC7C0DAA3156DE,1F7BCC0E1A7A47C1A9DC81BF7A5E9443,19FAADA24BC94DBD98DBA38931D9D5C3,E4A6F77CC5AE4C16B4AA7D9AEC9F0AD6,012922F0C9BE45AC9E000C170BF2E9A9,F0964AC8C8414CFEA3BD3038334F53C2,2FA7A68376774097997945418359366A,667A45D91C7F4B7F964BFC032EB63B98,03AA52E8BCC44202B803378EE8D65D58,EFF5A6CC096F48DAB0DFFCCFDC1D12A8,1CC8A44172004A689993485CA08418F6,B48CAFB50A2240A1A4A6C4FB5F6540A0,F5122D15300041B3A7FD5CAEEFE010FC,AEE32BC0D4AA4BBE88CAD23C4A99C32B,A45A18C258BF4B84ADC9F83CA5E66A1B,E94CF216CD8C4D4492EF9763A58DA418,3D4350E88F864869BE7A400E34098DF6,B5B4BD2E70554F45B4D07F76D381F20E,4CFD832223A948AA9AB86F6D3FB614D6,4E20E9F578C54432A3CB5412CBCFA492,D63FC3E76367477FB2D42E0AE407FBA7,C6D7D6D0BDAB4069BC9DDBA5F40553D5,5BC342E93B544995AAA7C86D25A65461,F78CB2B9B14F4DB4863B766DFC29D5ED,16B7A865F6744C6D86CB9C7A84A36BEF,870D91E382214A7D8990CC1AC9DC6DD6,4108BA1FEEC1416CA44EA98E369C2826,C922B98E963F4D6A882CDBBDEF7D15E5,762DA96006094F9E88D676AE8ACF93A5,6F79C6BA47424AB7A75E083D66A5F01F,663B92593433418E82C41DD2E89FADE9,8527F440738A4F418579DB97DF3F89C1,EC994C5D3E384B50BF2038201AEB9534,4730215C972B49B59E158626994EE01C,1ECE6D239CCC426B871720D49E43B016,1CAECE59D76844A6A3295AC7BA020CE5,9263179A61D2409B99C4090E9EAA7D20,26F146FFB30F4BDDB54A8DF0B0509DD0,EBD95185781C41BCB68B78B80C438DD7,64DBDC8C256A406CA20981AA30CE4DDC,FD557F6C2CD94324B37CEBB0244923C5,3EECB56B5D494223935CC56989332079,296E6C5ADBA342B9AD7EC367355DCB9B,253C02AB7C334D43AAD6CB4179C5C18F,5EA37CC0358F4BD19B95294756794BDD,2BA3696B0A714DE792EE04EFFE2A422A,75A4BC78E77D447EB36FE6733AECC8E3,1E461A3D94C948798D83739B0E4D34EC,241C9251D87A4E788DD782FF18F752D4,13290474DE8747EA9E86AEBCD0894E36,E661CC6DCC3245188C113891570B6FE7,A6556536CDB84DEBBEE98A2D8BC0B2E5,608CAC8350894137BD495615C3C6DB6F,4C239D7F10594013A20F8985E69CF23D,7DD272421FD5486AA0893D27DDF29852,2C294AFB870A4521979F4C5A9E9EC255,7BB7FCB0C7D54E58A55743DA6D188EEF,7CD470D7C8F04C7F93AE4D68330C2976,C2D69ADEC06740259E5ED5D18B838B2B,6BAEB1173CA946828D213F31B24DB174,BEB8273B39C44463A620DACBCABBE7C1,F506591A5CA1490B88E1D308EB751DF9,BDEF9B49F2794264A09D633B7EED5F8E,28EAE9296045427B8EB9665476C4C569,7312FAA0783F4BE59E60A72126FB3621,48D61B958F304F819C30C5AB4609AB4B,7E4C959C6C8046889F58DB1194EC62DB,518ED5CF5CFD470797185562F42DE174,C9A5DDA47FA242E4BCC509C17EB744A8,9C308AED3FA24DFF8AEE3DAC2193313A,5D0099E4986A410999557401CA3586E2,6D6DC06DFB624322B7DEDA0EA583111E,939BE7C704F2488BB4F7C12DC592AE0A,7BB634C0010B4E80BDC648F70627BAF3,BDAEE4E573094BD1B8EE79068EBC0431,E00867398981451AA24FD408DB1BCDCC,B106F242DCB245E694A9C1618108ED95,8D3897E1B617473B9343E631419436EF,F818C418BBC242F9968EBB6DB283F9EC,2AAB0FDB6ECA476DA199B7FE99B0CFD1,3F01E153F4C9412ABE25D017634DBC62,ED0E2175F144463D962DD064167114E0,FA6A6A0FA29247F6B6CDC78786BEA7B4,987A1DD9AD5447D3BB1998D17BF4D195,1D1489FAC385429E99926AC310A1E1A3,36968FA7D43B4A7B8D169B7597768B14,45204BF680824BC2837BD320F3F37002,CC522AF8C6B34C318C212BFF164A93CC,9E498A2DDB4B4BE483183CD0DF90A3DF,3F7795DF74AD4E2C850B2A296F5194BB,22BEA473865149E4B18BD4D1BA46B5B4,42D0E04389E64327A6A1283874BE00D2,E5E2ACBACBED4FB0BA5931375FBC7A23,B7DF73CECF6F457C82A9F78B5DAEF20D,F54E8823F2B24A5CB17B567FEED4033B,2ADE8A7B87684DE3B74F89D31AD58806,E82F6A7EEAB4403CB133803E21497F17,F280AD3E76B442FBB77F5E6B54C162B2,16085E859A3048F5982F37DAC62CDD83,532CA00BB1564D4A9E303AAD57682835,188626FCB0984095A8F45FD7E064D998,3E29B820BDFF47758FBDD95FAD23ABAF,567D7D22749B4D8E959474D65D8BF215,B44360AC0595412ABC6AA3865714D369,7A438AEAC70643E9A4E3DC0E32600C3B,C8793B63BF5D4BF091155133931D9C72,0D9736CB7652401FA5BBDB05FC45E069,0C72B6ED0F444D14968BE8F51D565E60,5826F3D96C714EECB113513F6906A27A,F9F435949215421CBD9C276734782BF4,93DFBC8EDA3140B2ACBA96C0868F8F93,635789CD15054FE1B039230C56924840,2189EA48501849E9A7EDF9DDB1E651C6,8821893B6CF64A0DBBD52C1E6B358C57,2F7C4A3F91B449C998A1046D4207DBBF,67D06B7868C34B67B99EDE57F61DAF29,293B9F2758CD4E7A84016DEACEA56DB8,310665C554044190845D8115B2A1DA66,BF4EAC6AD4E34045ABCD68CD8DC6C990,7FB0FC1BD7DB4C7AB59AC7544A6C71C9,BAB6EB32C7CB4629AB5D44E991C5FAEA,6BDAFCF731354595A73E8B3DCC6EDAED,7527AA90D1284A14BA50F650156555F6,5C37BD4C230D4D28A9D30A7FE6680A61,1DE6B70CE95C4AB7AA1B20FF59748310,2E1054C95AF4422FAE81C223AB2A8C3C,2D0C5FCE123F42B79D82E946E67003E2,A7D82839128F4699AF363FBCC831B667,DE9D8120B23749C7B7CDC9877EB730FF,CC30D6463F8B4F8688EFB9E52AD3D8AC,4EE013D11475494A904267621CD24897,AC76D90001DE48B0B282063B3D3A2287,202B896169C14E0FBC19F5F1546807E0,7FE9762103C944F1A942DCC6A7F2B28F,C57C814A65AB4319B31F116F20EF1E10,A2D86CFF67944F388BE33ED03F7132E9,3461C608B2324E6D9F6DC62A0104E9D0,65C0BD68F3EE49CBB7A136D44A836458,7567CF1E16034F28B07B344C8A3CDFEA,14BF5F16CC214CFD929448A1E82D61AB,3D359664DB5343F88E743B1E1B81D89E,9E24982D921D4835843855F684E998CA,2A1242B011A74135B8332533623D44F9,B8BB8BAC61684093AADA5407703E369E,D085CAFA50DD4D758BB9B67CD43BC01A,4409C10B146B4E4C9156213F11571F97,0E8AB47709354A8D90B9B4CE2002BDF1,03C42A2E04264343A044DF0AEFA0B8CF,A6A7245927474B2384473BA3926FDC02,92E72F7EB0624B44B3C24EB4D20E0EF5,247B598FEAED4DAA99BB3DB243A1A2FF,C418642A29E74570A903AB9ED1E0EE35,BDF8CE853292476996470FBB56818609,B0DEB5DF1DFA40B2AE0B6731B11427DC,1E38BF2692954D719776C0281BF246BD,559F1A4C60BF49C997E85E1C2C46350F,6E6F67130FC64449A015454E83EA02C8,3981D04A883641C1A238BF0A5C94E8A3,A7C61D63ED324D23B557B9AB140B875A,552E5E9C9DEC4C1EA12A5B982AB23B88,6E0FB6CC7C2645378FF7C0DAF14C2D3F,4523A611FAF94AA4A4C55BF1587E02DF,971C1A98D8924D92B187277D9CFB4515,432B90D3431E43ECA74A2E75A3410412,22607D68D9C44CF99D9F15C3AD39E780,CC5F3ADFC4C64C6BA57A5DC16BAB4D98,8AC8246D193E4D298611DDD4642B6B2C,E5663D3B91E54775B6E2E30DA4D19A69,D14DCA9D8CD9434D9A92014E197515ED,A76DA90A12364AECB25E7247AEDDD716,A9AECE348DC34011B682C55BABB48020,F8920113745A4333A47A0ED86570196C,CA34941133C948858FDB16050D7951D1,87CCE66B83EF47F8AB6FBD375B5E30C4,D8365A704B6348FC8A33F4A89B5969F6,69DBDB5B73DA4F658A36008A07D40A5D,4B1DE5BD45ED4236A616598AB92FBDD7,C3C8FECF0A304D0DB57C08F1E97C8DCE,BEE51847BB75475E8F065539099141D6,C3C21E24D2284E02AA19CDD6F3C9DE54,8FD7A56F8ECB4CB688DFF9EA68B8DAD6,A2F46945E3D3411C805A38D3D6615DE7,BA7C1F3770294D0C83A644A6CAEDADE5,F2A178C2F27040FE936F293B32547DD3,79F1F2A9EECC458AAF53FA9B0564065D,8C119E68C3254ADE8496195E6B3EEB04,4AB82C332AD445D8ADC03272C433AABA,7D18376821EF4A6F9C019DA1B901D702,328ED8A0135647D4A0583F8D20D82268,20B11B68E2FD4290A332DC858BD6CB8F,51BCD72D26EF49029E93A0D73C153070,465D04C98146418B847E97DFCCA55A00,E5B5A780C430488D834864A4D531831D,4A38C6CC21F34A4290070150C44FE058,0D055DE0AD7C4A17AD11F5221AB56EE1,DA2DFEFB87CA4BEB976EEB97EE490451,DA15ED540F554609AA75B633469B3A34,0F4549A0480A4FAD8BB86098A1206324,3AA4B298FF244523AA6E810207CD0F85,A10D4981712F47E6833C621347F3B7BB,3AEBFC96D1C1490F94002474818522A8,20B969A4589E4B8F80E88E5943BA86FC,FA044AFDCE9D446C8ED95F9107A7A6C1,443CE92064754DDD93D70C9A733CC487,2CAFB913A69646789C806A3F5F199A4E,ACAB5CE937004DCCA69B0206EC1861A0,F6F6961343144BE6A2B5989B4F3D0A9D,1DF798DCA1474CA88CC3E25751CBDDEB,43075BF7B3AD449ABABB1609044DDB63,16098CF8E6C344909690308836C9B11D,9BCBE13D3FD24FE1B4B077747DF11FF0,7B0175B7FFC74AAA8DB267B8A5E0834F,2BCEF22402CE4162B82D8D3620098716,72EEF14D704A4E40B8E05743B9D3B62A,5CA9E35F48354194A689DA64A0292BB7,2A4605D768D146DFAA5CCB592BB3D0ED,AECA79B79C5641888EED184ED5D1C926,181F48E2ABA1434D99DED645DB0CF6A6,71CCECC938B942A9BD1D0D830CB19A3A,4583AD5B6C034569998EB154E6B33691,E7313B4261AE4778B3BC331C24FB52A2,9FFBAE85A91D42E99DEB33DBDF85AFFB,01B7832D7191443F916E10D4451F0C9E,C9E7AC5345CD46878F387459F27B339D,5BD743D5E4D349E484892AE097CD3852,2854025D8DE04C3182A8114D9B6ACB0E,9FCF3B9AC9954D87B4A87D49AA0DA1C9,CB101007189942CAA0872B7823782473,4C01F29F24994D19BD0313BE42B75E1D,5790A2D6F13A4D958D30E79AC4F85DD2,C8C92AEE3F6845D59B73E9450FAD19A0,9480B0F081184FF1B9AA663349AF0B16,2FAC76738F52481DA0C0DF241B852DE1,AED83E964397475CA1786418536621E4,C3FBEBA2A3104E4CA9B03EC5727AFC96,67D6452B8C104383AB977616F96EBE8D,34DD787F32784E0F8818085FFCEF93A2,4FA88CE401974AE887F1AC44D31BC61B,BCE394E9C2EE4E6AAF6CB4867E9FE619,15662659D12C4FE0910CF2AA2A0A82F3,37F25DA6FDD243489CEA32040D53A1E6,BC8F16187E0E4F578323A4E866483305,2DDD01B5A9E748BFAA5329FBBDC057A2,450E0CE2EDE043FDBCBDD0DB14C86517,CD4B759A9EC3413E9CA47DD7AB1E7945,737D52C71A27448B9DED0B589ABD48CF,13C16BE72EEC4292A23DA8EE0FA9D5E5,C011011379064277BFF3E0055383D7DF,EE207345CD2C438196C70AE4A94BDB96,D4F54F3DB05D429E8A539D056001A97F,43024A13372947DDA25680683A0A8A38,72B9F6E3C1E4477ABB37BE4A89B56027,2DC2A034F88C45E3B5E95371FD3743B1,6840D031BB9146CE86EAD6E5EC9BD79A,F80F44C0A9474AFA9617074A6BE52042,C70CD8E29AB349C1A900322390A0FCB7,0C0B6CE1DF4F43D29D53CAF3B0D716D7,496E4A37C1B44FC58529948F2FA096A7,AA5F30FDB6E643569F3F43DB57271C94,45D3E2B17BE24514B956149B0091C276,80B963AD01104815A5D3136B0227EFA4,A7265CED81EC44608151C488E01DE24F,26EFC8E10D554281872E2A852802A32B,0FBBE2AAFCAD46A889CD939955BF1685,AE18EBC7295D47B78E7E0A8E79FC6598,F744060ECA714D36BDC7C8E83E9F0673,0894C0A1632B43F0B96F535075C061A6,16039BA5E9F34D4BA14715DC1A0F5DAD,E493BBE39F004EB79542EBBAA173F280,0E8D8E69AF0848E8B736AAD16202CAB8,D5C4103435EC409FBE25A83EBE990A1C,34B02E61FB264444B309415C4177BCFE,3745D74352144216BFC6088BCDD5424A,8B65D5AF36344735B14090B421C62559,A7B59D7ECDE4492CBC7B0A4B4ACA0F33,5966D1223A0D466EABAA469F074302C0,A7961C3CC29B407D824040F60C20A53F,7527BC2B93CF4FB08988D2D350340306,F5E87850AB4E459FA4CB367020A835FE,610ED591D35E444BAF200B9B58372FA0,74137C30BD6D4DF39DD860F7399B9F0C,88159DC6A186412B94091A13580669B2,4CBC4E2EB27141E89EB250A87B1816BC,C3E1EC5B7F7343E1813445A16DE4DAF1,BA262A80E2F7402B9755A07946BD36DB,2C50DBCAD582490E97241DB8FB78C469,898204C671B14E3D9E67BBA112F62BF8,AF6139E38EF44FD7B7832DC4EDF583DA,8B8FDA081B114B89B46071A40D0BF5C4,3F2ABAE566C44E6381F73BDFE0705280,AD55FB7C4145409BA37D44BF9CE12A9D,981E1B9D156744FF8D861BE9FE501304,2F48CCB690A249199D3B450DC2394189,F24042BD490240C1BA82FD81EBC78F24,191A3DABCC4743F4B365DA08B26D0B7F,652A8B9981BE4C73AC3C17BAECD4BD92,3502D497DCE44C19AC71832871E6C630,182CBFD7792E447DB7E793F5BF9E5721,8E53817EDBE04AD69C848BB02540F72E,77EF026061154FDABE843CD802BF3A7F,D93F7D88225F430DA5AC16994B89EAAD,BA54E7EFF42A4FB994410CF44A7FA020,43E6A2C4F03E443F9D8222B6B5775F16,27FF0EF629A9438F8C5F9AD1D83F4338,7E5D24B41B264EB082538C954321D3C2,8405FB99D99C43CFA5CF7A16474854B1,8BDEB7A111FD4CD7919717952D66C39C,B8D24B70768442A7BF21B463A4BCA1A8,8EC5F2819E4C44F2BDFE61D85BEC09D3,A754B30D8D784C2AA1F2D7FE85C128C9,36D3C86262764F888775B79D8391F190,6B22C37AD7DE42F29F3C4695E609EECD,A3D6987E57764C878E5E8578CF52DBF2,3BE375B1A515496CBCBF546D9333F40A,75962E4C953440D8902CF7B66AC04F48,DAC4EAA5400C41B88CE896F3FFC78E39,A7F4A495195E4B05A00AA2632ABD499E,5CEDD4CFA07342B18CE9E1ED92C79456,1989A31D69BA4CDA855BB4FA49989D5A,97A7034836A344F48DE8309E6AEC027F,8CFB824521BB48748932E3D2D8A0273F,16D17845A82E4163BF2F4511F9BD7F2B,61089EC6F9DC417A9AD7AE7E0D128E0E,3F45C07E8C5E42829685ACE23E5C563C,FD0F0FC81723424F95A3F7B85E5EC983,9109848F4FF74941BD0573A294BE275D,48912533C61145B0A43DA797643EC09A,2582F83DEFFE431FB22A0C2D5EEFE7DE,665EF044233C4E33BB993273A2978FA9,496E733687324726A050E91A95C82886,80C6A8AC39A6475DA46FB0B91DAEB8A5,0F6464ED9CCF452AB493CCECEF7DA08F,E8D83225F01E4E758D8AB0CCECA76264,2CB60358D5A8493892ED0A2F1DB4834E,2AAC399629F04FE78A9EE9E11E213EA5,A83E95ACA9D743FCBC21DCD6DA3AD73A,502337B452FC4CF2B24A430954609F6B,EA70100E879B423C8EFA543EA99DF407,D32A18B4CB374362A5AE093BA24997B1,1EE5DF40980541DB9E83119699694A11,116952D64D3E4B92AB289B1BBB6499DC,3FDE471AFAAF4D388AD66298D36677FD,C5C448387340488184104AD42003A1AE,D20BF73270B6408795B543BBDFB1B4AD,7696DF68F30E490D81EF47D6708FDBD1,C66AACC9586F40389B5C7C19E9AD5373,53DC94764DD24161B343588CF175C892,B59E235ACFA046FB9F0A2445EB894FEC,F09630B3C89A4AEAA4917BAE90F6F5A2,4571DB95BFCB4138ADD56D81D0D3FFEB,570BE30A25B24DDCAC0F2B7C17A77E41,660047746DE5471DB7BBFB98009518B6,6FCFC3CC409A479D98363A81C4F8AF59,799EBB6FAEEC4498AE3FEFB0846B7D83,6FDE396CA1814F3A8E158E30E8BFD3A1,B2EABF7833CF414DAD514F9BEBD3F522,7F0356F2EF6146D2AECCBF1AEAF3F8D9,A36A5FD84F414246BBE6AECCD640F8F0,B20160619CDF4AA38C2DC0A595E532CF,00555CF45EB6417A9972450092931183,4346E717278246D3B87B58743C9B72B1,12EC93AA260A4990AD0AA51321682F32,8227857C37B945A4ABAD5D095EBD9AEB,B51A3D86750D4CE8AA1E3C2B42143F7F,E15D0387B2674ACF9CB27157B84B7089,C862D7F0B3044BE9ACA28911DF0DA64F,63329860DA6240EB97B5B75EE5F31ECE,28587300A3984277A4F8929F68C3D29A,B6C0D0E043FC4652853223913F87B270,68109BC0BB044111A5ABFCE4921ED9C9,5C14DA8D1EA340ACA652C3FC0FF70F84,BA914A6AEEFD48029F8D2B61D8FF3107,F13CACDC1F7D4A1CA5DDC67BEAB30F7F,2FEB707169AA4DDAA2F89153847E487F,3BEFB6C472244998918D0B5E3D421225,4E4B45465B4243D7807239C474E9FE1F,70CCC7CDBFF4431C88FB3459C97784B3,2EF86E9A7A534E758696D26732FCF136,322AB8E4A64B4A15832894F2EC168DA1,09BCE3A5E6A7419393B07392B22B75F5,C67627AE6FFF44D69E2706B4DB2805D6,1FF5713AF1B145E7B0406A505B2B503B,12F01DDD6F324D72AA1A6DE5C274DF32,BF614F88FD8B4CB3B26136A2ADA48DE9,23396BDD4D13461CA0A7949592E28F94,1E1B035CEA8C4B138D46D3F1B5598ECD,4569D4E750614764BBB49C39F9FB10F8,CDB6D604B2FD4718B910A6E9872FE798,81907823853F42C3B759B933C0E7471E,CE2B1B160E354C53853187F8C2C83A42,B7919F23D5344820AAA3A9BF1D914E8E,0FE43CF424564BB7BF36625A58CADC4A,702F65122A514EFA9B22D508CEF93137,F54E5680AC8D4750B07CC0A8DF48B507,5C879C034557406999722BC2E3FF9FC8,9202350195654EEDA94B1F991269DA75,47BA93AF03E1451B8773C26E6AC8CE64,2A0E86192FD04C74AA662CCB06498DDC,4FED6D038BAB4BFCA749B4508B34CD52,18241C20E49048E6A94E3E9DA0AD2633,0C3BB563205A457C8D293D03023175EF,6C9F22251C2F4B7B866B3F4CE1BFBF0A,E89423B676C94F48BDDEBE67C9D6D4B7,2D501902C4C943809CCD8401CB3D9BE4,0D90AD4F70CE4940AADB9D504EEE962D,2F0A4047A85347C1A13A3440B8CE6F3B,8FA86699C1FF45AA90DFE31F2438D86C,3E0BCD178A194758970BF51D0DA48850,638282A8AE754285999011B0F26AF2FC,E857D80DFBAE42FDBCEB32587FFC45C1,B9276123B5F24ABAA8F0E0F4DA016ED7,BCE09DFFB57C48DBAEF19F4B305A6C42,B27C243059DA4D6E953EE06CD2FE6A43,026EE98029E24CC9AA899FF81710F1B9,56ED6B6C01FF449A9D7A2B0752945F0D,CA8E63CFB7A14F1190A696320E35D1FF,3DC857B6DAB24A2AB366FFB461C9855E,702C5267D8394858B42DDEDE97987E55,302595F0BFB348AC96ACCA3462652772,D619CD811DBC493C9BEE6842D33EB522,386A56C820E943AFB834EDCCA21AE4BE,E18D2735B40E4831937C4AD51FE3A98D,4230923437544229BF9264AC98C369C0,3F58D35A3C4A4B949E6F6CA7D144E0CE,CAF4545D08C14E22AC8486D36E8DCF28,FCD62D8772474CDFA30CDAE1E5056CD5,3ADEA614BBE6431BA6069FC36A3C97A0,FF2A1C4748514715A0C4679C319DA9EF,0F2975AAE35A405F826E103DB5A822EB,DC364EABFD3B4401BEC26A07F4E44A37,E846BE76182D48A49C97CC690C97F4AE,3149D2CA4C594F15AC82A6AA690FD5E6,8714A64C27724EDABF55119D4CED7551,725B28B9DC0A4F86A92B4DD6ED2E3041,0ABB02A1529248EFBED98D5870DCDAEC,CEE3819E905649E48ACE82D2393FFF25,CE84DD21BF89494FA02D9FA3DA083D78,09838943FE5F4FF993AA98FC57CD8D11,ECE91F02582847B587B94CAC9932C518,F0B5D39EB33F420FB6F54D7157A55839,A315DA3B04CF46B6A798ECD5823CD07F,0497D9D41269459384EDF619E0049CE1,8AC3979E33734DFEA8A2055B0F76ED15,A90CFA88519042388A29564209314741,01744E8EB13547AF9FF511A1BEF7EA62,4ED1464E11F64CE685863C9FD10DDA91,72E1EE1EB1B64F40B484A9E658CEB2A7,36DBA7D3286B47419DCA4CF328A5A2B1,AA830B01DC4A4B98B89A66753135DCE1,A68E096A6EA44761A4D3305F6B75D366,56C4F8DF6F1E42679917DD232141FD10,DC8C25EF3B054B82B1D7FB83BBBE2E16,7B2BC61546724826BD30535A39875505,23CF79E994D145CAB2115887123165C2,2BA4A08268714124A85F6921DC66AB11,28FBB2E9485548018B39F4E472DA697F,DF2898E7D0744F37AEBBE46F8A6B43B5,05014EA3EDE24BE4B059786D95E7F094,B5C18E49C4FE455C8E448B916AD68916,98A5AE1B34DF46018B2A58751B36E081,8F105E9399974245A6A7B03E373CD93E,5ECBA324713A48D6ABCC7C6A618E0E42,2253C879C25D4AB58D54735286FB9D40,F3A6B7BBB4E14780A597ACEE2364B8AC,AF2466B830314464A6FD9ED9FE540835,6BE4A805134448389834072E553227BA,0384A027FBDD42CF81AD75E1E294FF4D,3FCC65AD8B08448F99DD22693A79D950,95E7FA6FA11F422386DE47B72F5C82F4,B9036CCD380640B5ABE44E2F70F3403E,D9BB4D5647CA4095AB8D704F5F486AA9,846E7BB1062E4A52965F1C920AA19E39,8F19F299524E4524BA66DB5CA766A7EF,18463C55FF1E406BA14D248C0A0B0EE1,E1B566D9D7A24880B91B75FE634C09EC,A272146A02784171B34F59626507E8B4,00C8ED9B528449E9A5075F0900F693DF,DF3469879D924EA2AA6EBBEED0BD5C71,6F660BCBCD7648A78DA32EB53F3FDA97,9EE98B06D4654C289CCF5529D1B18EA7,4A8A1D7988B84328BCD2443A826C0D65,7092797825B644458BCEEF2AF73AFD76,276890B0D6B64987A57CC53C13509847,1E6270E3DD844516AC2E788263AAF864,E40B4EBE07B941739CBAF991B15EB31C,759E5EE93C534BE987F4E102744C853C,DF8883CEB3C34A8A98772250889C1FAD,ECC7EB1C0A6C444F8F7829E6AAF07E27,8F5FFFC657B34DCAB67820E63A3CAF19,9FF9ECD87BC34F7DB1B0D834CE5B3914,B7112A54C4A84103A91119E9A923CAA8,474EA1B39F7A49FF851BC72EC5A78EC7,97DB7447D86643ECB28B95201F74097F,76C693C3C2B342C089C0A913E86EAA89,E34695CAF1C3484A890DD59B8D7284CE,55840107F48E49B887A0E5B0D3B3B98A,8885E6EB5E9645F49CD4B15CF8FC392A,16AF65025C07431785613B5CEFC25CB5,F107CA5BEFE74D42B025D8B99CDACCAF,B14CD4405A044F73998F550B8BA90125,AC21E52C36704026B9B4766F8C882ECE,A27661443B16415AB2D0345E53496DD2,2A717F7C092546D2B4443A043BE29B1A,B751E6E6CB594ECDA958AF8DE5B56C3D,7F3277FE0F8240C498B9D949CCDF3405,BF7DDDE627FC49DD9B16696221373589,420448D76A074BEFA50D162E01729EDB,50AF43C99E9B48F3BF5D8A25F5616CDE,A326B17305A54203B3E08C140A3CF4DB,870E7781DF9D4C3CAA5C84997DF527BF,3102C96F8DBA4C6192F24F33202798CA,7CF86A4E1A4D4664AF815744E9F1E74C,DDF6A443808344048A7228E56A42DFD2,4269BAA6638F4976BC33576E4AF7672B,35D9D94F473149BEAC756F6E10410259,01F7BB3644524C1CA22677E364359EB7,F9AECEB83628497B8B9BA4C70FBC9890,E083FE5A770C4227AFC0D55BD52BC834,3C2566B41E1C41409253870D7C7A970E,54A248E9710A43BCB8C74C77DBF2CAE6,2FD3DE6D21E94B4C8FD6830FF7FC0BDE,001505E1A4144725A6A33AE9A9145DD9,2239C94CAF594B6E85D6F8113F2D0818,D5AE35E76D8A490D9BFFC293A653377E,D4CA4A8CC91D45AE9A39B6F05CD1ACF4,D0DE5D6134994B9FA65F105346C95AFE,1280BC47A193459E829F013268E994FF,924D8335E7D847619EB58B3231420CA0,703C1A18F1CC43EFBC7EA4B42482B2E4,18FD7F4C2AB94852B7AACC69382783CC,8CEC56149ADC4ABA9709B83DB5D0E305,2FBDE385A8F8458CAF233F64E69F9633,31780A9C20414418B4DD1AF850C7A933,5B48CBD770EC46C082602057E4FD9CDE,F618E8B42EE24468B960CAC227DBAAA9,2860DD8618E74BD0BBCCE842773571F8,28370977FA0248959720B0E0D25C90E7,06B256355D6443B392342B20D1EBA903,AAB332FB548F4667BD92F7FDCF181DC7,CE70F380F4104CAFA7A65D6DFB584AA3,6EFE11034298471F881C0E8E166C1DA0,4BA74D5497CC4C868CF7ECD83544987D,9301D0728E004792B0BA5B5EE96FA2B8,E5E32C57F6764E20A4E07F2558ED6091,F3B40EA725AB4FA68176AF7338B8EE25,571EE8BBDD9246B1A12531419DF6E10E,CFF4F9D462A54AB1BE57E1AD9C49DDD8,650A7EF9959A45CE95183EABB64E00C9,3B463B4B133E4A408284A48B3A10BDF1,6BB505415F19440FAA089B8EEC4F3515,7C5EFB09814A46E19C237ECC37B3660C,632D672636994636A223C0F90C02BED3,91E0D9563D194E468D21AEBADC3CD9CF,D5C48AF718AB41A094C62E688B287364,3607825DECE24EB4BDB4B3A209D9E082,0E684A604A0F457DAB03177BD21A6420,53E3008C9C4D49A0877201E62CF6E04A,B9A86159654E47E1A39EE5CE6CC71362,5E99E484F85E4410BD41AC68397270D4,E79A7D01A02B4FE1BF85DC325D86E406,535F77D3EB6C47B3AC5A34CC18533694,C98A28BC823C4294B46529823CBB04FC,93F59369A373432CACECC7F9B4FFB5E7,048CDA11D033448FBBA66F7BD1F77B9D,F65D3442F8134670A9BE8FA1FEA1ECDA,946102063DD2453CAEB693DF4C84EF84,CD624C72E6894DD0876BE76309C92F7A,E7F950B83FCE4541B99479A33309BFD5,C7BB064DF7104BFA94835266D7698D79,7CBB70FF62DC4D61A3031815C82B0466,4D8C1518934442EA9DFE3D3D8A8667C2,10BB68CF23EF46C49BF64E4E89F5C6AF,586AB106F4AD4A98BA13EBCB21B0CBAE,5C117A7E42A142E2AF4060D6978506F6,76A140457A834EA1AAE9522EA558C95E,42A28DB780114ED1BAD6295C895E18E9,822EAEBF7F894016AA02DD361DAEFDFF,BD2019A876C44500849B68B68E51D017,5D7B3B3AD3364A47BFD951E5A419F6C3,D7D6C1278AAA4F3085086F4844B32ACE,FF6E8D25DEA647B2B9F40A78E9B8BDA5,BE9805F1C1104A3DA11364BD72F511C7,262FA28BAEA34B2991B72E995D6FC670,45176D9E7EE041A390580ABC7C3AA5B4,FDE1584F345A4302AE1AAC4061F7E350,C91ED46EE4AF4960A209A2F95D6695C9,940D38D23DA14967811460D62E96639E,449711E7AEBA4C5F9EEABC75ED1E57C2,F4102CC52EE54B1F938C7FBB55EFC65E,FC0B5FA9588041C7A089F9F4F15B7807,10D986E87F9D46F79A74A2FC8A2BD81D,26C330DFB4884BF89EB34EE148EBDD49,019675E139494F32B3BA24BD2156B4D2,4ABDABDD2A7645F8BB8C06D9C233FA6B,54A1CED8275C4B358D34C2722D78C0BF,804830A9677548A8B18460D576EC7D04,0B01CDBA423847A4AE4716675BEB0686,CD55A1CF618C42FE8765EE7ED7AF138B,DB294895E53C43C5B57BA6E67984F65C,31E2EE0C49E44BE0BB282B3AF9BA4031,6FBEDCE27CC840F2B5F8066292B4DE31,F0510F52ADE345738EC32EADD17E2C2E,233B089D3EC543B289330ABB32583445,30EDBF38259640A9998E2828DA26CC41,A912FCD83689444AB8842371DDF8EE73,FA7C0BE4EF0A4113943465D3FBBEF4B7,415DD0B9ED0B4FFDBA6AD446A2833019,D1233B88792B4E47BACF393CAA20A19A,72DA9850B2704D4FBD0EBC798F181EA3,702BC2841C6C483C90FFDF717F7E39F8,CFFA1B2E4A6344DBA7F10E493E9F9E55,040034E36242428B9A10AB29EA09B1A2,EEB826A5287C40F4A67AA272C31DEC06,C1128E42F1F74F9A9968D478BCD309C7,547DC5818DF547E5A661D5368165698B,6B0A59A1FD8F49BE81E7993294DE7BCF,BB6C785F9B6749A197D684295896A658,B0FAD33DB5E74AEE9E4C7C9B9C3534F7,3CD68D6C2C4D4FA489426519901BBD8D,D8B22C3306F14E7AB839779F2725F64D,0359804E82AB4C4E9CDD9B7E0164B98C,8DB7B5AF05A942599B4079BD745D2E0E,5F991002F397433D8D8F85553F9A9E0E,243E3781868D4AACA595769C49FEE828,60BC114930C3446BA097909BCF549D9E,9B2D9EB40A304B408B4E7F3F104DFEFC,038ECA00BC1E43358C9F8CC64CD1FC61,FEE638397214428D87F99820D412C4CF,F16F23AC2FE7479C8129B0164C5D12ED,328F159C9AD04777B33EE6CDB0F34274,3FA7A170295C4694A3AB7006269FE44A,76657AC6C24D4B0BBBA01CCE66E68ACA,729CB551536F4368AAB31F37EFC87DC8,5FFC384CA8D24D23B02D0BDA84CFB1F9,2494344A307947F8AA0CC3002E231129,F72EEECDF65B454FB7728B20A99631CB,0C4D61FE10BF44D49B696CEEEE1B7436,2B839D28DEA0401799EFBAB421F7FA0F,2EB009813B05409CB57AF27D4F06CD7E,96683C02AF724A7FA8C1959BEB092C11,59989DF3A77942B7818F2D562FF4BFF3,1B538272CBC241718EEDA86B17597704,1975F5E8D07E4FB68E1291134FDA636A,C7FB4F07E6C644FD88AFA02A38188775,C14B252D24454D1EAC6AB1F23FC3E6F4,E78BAC824D5B42C2BE39E62D50E54581,9A2E6BD58E8C4415B18F24887D1880CD,E581AD55CEA549168F546CDF63E4A07B,34A17018E18D45DCA62EBA102DE1BAE7,EA76C567FCD341D8A95208B7DD30876D,6A2B77FBB7C849BAA2096F96F5D6CBA7,233AF1E9B7EA4B328A1A32DEB5B0F4A6,001EB48D4BBE4AD5A6C41552F4B64F62,3916FAA69EBE484DA73AF2D0B1C47950,4242E6C48FEC4FF9A9DD700A85F87050,BC2D3C1393074320B6C5B899FA39C256,09949C7ED72F49498BF6E180404A435B,53F2C273F24E49359F004E2166A60BE6,BDB9C6768C3C40B3B1F17CA06B034F82,541B6CA9B1414DFAABC07628A72407AF,C6A9F47E7DCC427A9E91C709A8D4119F,0751004D7D894AE7A30BC6B7F5CB070F,B02A219AB53E4BB9929EF9DA5B8E38BE,3B47A9E3C43C49808187871689596223,C63149626B17452BB74952D920647482,CC851D25B844472F97D5A2D0E4468A48,32BC252224864E0E818FE592D3F50CA9,395D5A3FA3724F2DB204CB532D30589D,2F48E5A6E54C4EE08157E0EA82454FBF,22C2A7943AD9461680C36CDFC063BBF6,A992DE98D0A6411D8CCB69A25A5A19F5,3D6B7373E92042529656BE25B783DF9E,AA83C241F1B54152828F3A34F15EC303,9E4BC9F01DDE4ACEA785C497781BA7EC,20865E2449AF48F8BB4AF1342DC3860F,FC44764733F3488EB2A794361844696C,16DEC8B670C74E4B8322633053B6C5FA,22D31A7A1135410C93B0A70AB990086D,5B0A39C1EA3F4D7382D20670844328B0,7A9D5B9545CA469E92104D3449ED6923,FD5085FA70474615A24B96FD19E9DC12,6DA7CC2CE236447DA8E43F649AA85FA9,63EF407D28C1483E86EAA391DA4A3278,979E74A407134E9BB76A60A6238D4B31,9E3CF19133284663A2F3B11CB8768F07,57DFAAF051EB4554A5D15FBC0BAA778A,EC3DE6FFFFC446369F565D133683FE5C,DB6F74F25F8740199A6C1C1F767A935F,36A505BCFC324928855B2D7D5D6E7AEA,0AD428DE4B0340A9AA9F058118E03E0C,2ABD304412BE4E7E8C7E8BBD4EA6BF5F,D173E68CFD1B49DEAE2E0CB644F9C198,00EEE096ACF7405982D582AB388A1277,B79D23ACEEC14F9C815A42BD376E70DB,51AD20B3B33A4499866443576EA13863,96295F8E181C412E8BEDB5B8E9723BD6,2C23842477844F258135C7A7190196A4,6FE9EA65E3A24695927DFC0051223A47,49712758AFA84A4296D48157F2D4BFA5,B2AE07B0403D4A8CA9A7ED10291A7DD2,99E75951B3544865B5053F5226FE9F1A,070CCFA8B50C4CE3A1EB212A3DEF6A24,324FB75003514A10AC62A5FDA371E574,DDFC744D7E59473CA252C051A2C0CE10,AC307B9EB795483EA39E55A05B1E9D08,56806CEE66214D5AAC30DAB79F73D2A7,0C4FE1CBE6624240AF5246106ECA348C,72408942D18A47C4B37C48C5595B3C3A,A1B6F3B583F14A5480C47231F790BD74,FF211CD57C37429F83BFEC98E1764166,0614B4D412E2433FBF59C044591816D6,C993B2F8838D41DABC738783AADC922E,D69F6A402A084293B478A0380EE759A1,E504ECDA4F284EC79520539C9488CF16,F93178B1EA304463A38DE9EC30A45667,F6A51419E5284860A43F10BA0675198D,E9B4FE164ECD4573970300AD44AFC0E0,14FDD04C20694036BB4217E7F77A68F3,570F02E8D1854F04A96093B279CF02ED,B14C20302AC04063B437E0634E6DA680,E72DCBBA947C4F6C8B5F0A3150F45761,A4A62D4F47BF4DB48D8B17DC17A280A4,8E778BC80EF34383BAB18EF9664A0B8F,94D9857199FE4B38BAC18BEC1B511461,18289D0190434057B14FFF88BDE10FBB,28CD6AF5BD5A49619BAF608D1BFF598A,FAA294EDDCD24CB6942FD6B4E77C4EA6,F669E50228564F579F390047C75328AE,F172681287FC47C789E7EF8EC487F413,903F6681C5CE48D0B752094452007E57,CD13B5703BC644038F7C488A14A7A8F4,4DF3B5DCED414961A4228167DB57F5C6,218825201D6E4BB496EF19B2DC9217E7,7EB21FB9EE87491CB7B9F4831011FAF2,EEF709B246E545C3A3C2709A5AA70D05,188DB1ADEF084091980043CBC587712F,B1232871D2554FA98FF79CB178DA3D7B,E0A66E5A16754B399F828971AA8B5679,351ACDC871D84BFB934199D27FA1B424,8FC31759BF79473FA8833167B0409428,56AA0F08A92F4E3BAA3CC0FA3E35B163,8EE644CD3F6C4DF7A724C8BFDBAEFE04,EAD3E163EC7E49A2ACEFCA29EEC4A5B9,1A0C3C7B24F94F55B238F1BBBC328054,057ECB2C9D5D434F93487DD4D1F29650,0EE442DF926A415C9070131DE5AEF4C5,28B04B5CA0E24108BD867D85B3850136,14193F098A9B4226997CDD2810EE8D07,1A72F7770F214A5D81A041FDAA10A419,7DD247B227DC4A058EF7C470F9308EA0,682FDF69FF914F799695811DA09C5767,C3E219EF11594C5EA9CAD46196B09E05,CF1DDD05AF094F1692417E82863E02E0,7C51FE8B22D54BA595058839B5498639,F05DEBDC18B14D1B941A1FE221F8CD8D,3983994A1B5142AFB2750565B34BE81D,FBCF45320AE34581AB671DA8A5704CF4,94FC9C1FCDB34DEEB245FCADE2467A84,73E0E3B5C72D414797A44CF1F67D8C76,C71EC0CD0B924CE99FDB5758D65436C3,E311E6B92BD8460EADCD6393C7C4FA1E,D33EF043BCA04DE781C774AEA39AC6EE,82FB8CA177934A32AAB08B32F223CB4F,FE806135ACA94DB58719BF79CB218D58,AECB72C010E04CF58C4415685BD89679,4AB3E35DB6554C729660A48449BD849D,0CA029F5AF874829930AF1FC4B81A667,4D475C666F3F4431827F520D5A47CDE6,B939DCD9B2B641F89619B8BF28165515,BF6419D005894FD99C9999E12AD42F80,B15E677B320649B5A6E5D5A51FDFDC19,59CB400762454F369DAD6C7E1395D338,BBAF60E54BD246598295D58324BFBA39,EB5D187698C94260BC581277D522FF2D,15B4816AC97B4DF892F7A3158ADBAE63,2F92A7A99C0248FB8F5E899190865CD6,582247B55A7B4F078FBE96D4579B44F4,F2CAD240619346C595BAB8B071281843,5FD6FF7F1CD4426AB553BF25F2E34F58,810CABD3FA74411A8E52BEA974E05BAD,116E83B7045E4F1BBD8122D79A1F62FF,70ED38ABCBE246EF9E4DEDAF6513F4BB,1610F41EB5684389B779B4FA2925A149,4BF3554CC38D4878A08D5EC2BD3353D3,F1D2805FFC03459099ACDBBC4C7DE58A,923944106D114205B9D7681F34AEBECE,7C92C619E64444359996525ACE663E88,0B34DE968D1E49868F14A59AB4983F64,511066EA08F94161940170E2D5AC408B,DB1D2331F13C40C8A068A70C72204309,18FED68D5FBD4D1FB4AF6DD575D028C5,FD28B7E04D864C9EB0A2A34AA0722959,6EC3F3A440864CD58261074A51E5B1AA,EBFAC6D3C4BB44199E7105BBA798CB51,CEFFC144A435425AB375B2436ECA1858,94DD7ECC39F94FDCAB17DE6B1826F6DE,85BC05A9D1AA45858194BC1BAB5026F2,C61628739CD24F86A905259885923901,4655F79CCBB44C01A4FA1D0630FE6F83,521BC4BE1A1F48A8A8BFFAEFD92B5FAA,0492C21F2F5941D5A114E1D7B5703FA7,F15A7440EC6C423F887134AB611017DE,BA70C68AA92A4F3CA945F6B2FA22848E,F24FC79EAC464D1094C50BE7D9BE11BE,182C1BA0F7EC425F9FC172CB237F818D,08DA04FB2C4141F4AB3C4DF16C053893,128501AA461C40588D947BF000ED1792,58C705434F5F453CB4D6C172A4B6C0D5,8B58EE4E6A3B4F45BB4B1527441CF096,968D4847CB8A4226A2E6F22558913C51,26E0F7179AEA43EE815D3DEA4039631C,00C59DEE0E974E94A6DE49B5F85BE68E,89AC795F8CF94027860F9FF7D4E4FB7F,196588AD551C48CAA1035338F859C370,5937BCE9E8EB41619D4C5A006641828A,F2AE6EFAF0874D178ADCA415E4BCEC96,D14FC44E0DC5403B9CB236BC58FDA14C,280C32C1951B40568FE3827FD0736980,5DE2030C5B5C4D258C1A5192BF1F9458,983E0993BB424566BFCA2073F0101B87,CFE22942241B4D32B2FDC9A7AEBE4F65,15A3FAC0425445DA877E19793FD6D6FF,992CF0959C254E439CD29B67C1AF75BF,1395FF6B38EB4E59A9D779D63B23B968,D6941A64CF214C1A92A2FC660031F590,BA6CD4F47E864B168DD9AB56A42BCE49,2951178DF5C24CD4A502213FF2EBC6D7,D655D397B66E44249CFE1AEA6EFBA46A,15B8D2802D7E4D15AADACC4A0597F7EF,677A0CF619434250A2489E3F8DB9A151,4ABC1A4B45374881A44CF1AEFCF424E2,C32F856CFB0B42E894AEB0F8DACA829B,CB175CB5BE494BB7BE9F28E6D9B0E57D,2C6C95B3164547CEB30920A5E4CE8DEE,476C635DC09E4862BA7DD9522B3CC12E,A363C39CE0FA43E2A860C9D9ACC97D3B,232B45EEC74346878FE8F4F64F4ECAC4,D5659DEBCF9A4D11AC0B92555B7DF299,D1AAC609AA9A436BAD6AF779811913B6,54F78FC1535440C6A8538A5557C2A211,ADE749C5FF1A43ADA736FB3AC2E01955,7F7861FBC5984601A02296632C337A26,8A8562D6D10C4F35AD2D730233495520,3F1D16BDEF6D4FBE945A28BD67C1C8C2,1EDE763AD80449C8A2681B178B307906,ED720189147C45D2B9C9A04CD4B0EFF9,8B68AA5B6CD5416B8CFE91FB385DA24E,2A44F75841AF47F8A63D3F857D4FBE18,95DE02146E80403C8CCE5F523D18475B,8E54F0AC2C394727B656813B89D08E52,AF5971FFC98D40D6B185259DE93B5C0E,1A6E7D244ADB4106A616B2D691C84822,A70D59A1A8AA4AC6A3AB4C0D280859F9,22A0EF1309E449259D3AA37C8BF81A84,381C2CAF30184BEF961ACAEA2E29B9E1,2AF51D28378241CC8E610DA6459DA70C,19360F4B3B51419984CB75C79B44E6F7,64F4FB0E73D442C1AEF3BEEFDEAAA74F,304CD51AB63148A0A3C5551A56ACAAF6";
	addBaseCaseId = "1F1DB5C1603246A89727A9B931666072";
	imgXunHuan.onload = function(){
		imgCount = imgCount+1;
		if(imgCount>=3){
			if(UUIDList.length<=0){
				UUIDList = UUIDList.concat(uuidStr.split(","));
			}
			
			// 获取唯一id
			getUUID(0);
		}
	};
	imgFenZhi.onload = function(){
		imgCount = imgCount+1;
		if(imgCount>=3){
			if(UUIDList.length<=0){
				UUIDList = UUIDList.concat(uuidStr.split(","));
			}
			// 获取唯一id
			getUUID(0);
		}
	};
	imgTiaoJian.onload = function(){
		imgCount = imgCount+1;
		if(imgCount>=3){
			if(UUIDList.length<=0){
				UUIDList = UUIDList.concat(uuidStr.split(","));
			}
			// 获取唯一id
			getUUID(0);
		}
	};
	// 从用例界面的链接路径中截取ID
	// 获取url中"?"符后的字串
	var url = location.search;
	// 当前任务的状态参数
	taskState = 0;
	//if (url.indexOf("?") != -1) {
	//	var str = url.substr(1);
	//	strs = str.split("&");
	//	addBaseCaseId = "1F1DB5C1603246A89727A9B931666072";
	//}
	//if (strs.length >= 2) {
	//	taskState = Number(strs[1].split('=')[1]);
	//}
	addBaseCaseId = "1F1DB5C1603246A89727A9B931666072";
	// 角色拥有按钮权限
	initButton(taskState);
	// 通过ID获取到新增的用例信息
	// 获取基本信息;
	getBaseCaseByCaseId(addBaseCaseId);
	showBaseCaseTree(mycanvas, elementTypes);
	showLeftElement();
	/* 左侧菜单手风琴效果展开 */
	accordion();
	//新增基本用例
	$("#addBtn")[0].onclick = function(){
		addBaseCase();
	};
	// 注册编辑保存按钮事件
	$("#edite")[0].onclick = function() {
		baseCaseSave(addBaseCaseId, caseElements);
	};
	// 点击基本信息按钮，展示新建用例的基本信息
	$("#basicInformation").click(function() {
		showBaseCaseInfo(baseCaseData);
	});
	// 注册用例的基本信息审核事件
	$("#Audit").click(function() {
		auditBaseCase(addBaseCaseId);
	});
	// 注册提交基本用例事件
	$("#submit").click(function() {
		submitBaseCase(addBaseCaseId);
	});
	// 元素拖拽移动过程中触发事件控制可拖拽的区域
	mycanvas.ondragover = function(ev) {
		if(!baseCaseEditeBool){
			return;
		}
		//当拖拽到条件轴的上方时，当前条件轴自动设置为选中状态
		dragover(ev);
	};
	// leve:1(控件),2(分支、循环),3(条件轴)
	// type:'015'(分支),'016'(循环),'011'(条件轴)，'001-010'(控件)
	mycanvas.ondrop = function(ev) {
		if(!baseCaseEditeBool){
			return;
		}
		canvasDropFun(ev);
	};
	// 注册画布元素点击事件
	mycanvas.onmousedown = function(e) {
		e.preventDefault();
		var x = e.offsetX;
		var y = e.offsetY;
		selectLoctionX = x;
		selectLoctionY = y;
		
		canvasDownFun(x, y);
		currentSelectTargetId = selectTargetId;
		currentSelectTargetData = JSON.parse(JSON.stringify(selectTargetData));
	};
	// 注册画布元素移动事件
	mycanvas.onmousemove = function(e) {
		if (!baseCaseEditeBool) {
			return;
		}
		dragElement(e);
	};
	
	mycanvas.onmouseup = function(e){
		if(selectTargetId == "" || !dragFlag){
			return;
		}
		getClickObj(dropPointTarget.x, dropPointTarget.y);
		//当拖拽后的位置是自己，那么不移动
		if(currentSelectTargetId == selectTargetId || Math.abs((currentSelectTargetData.y+15) - dropPointTarget.y)<30){
			dragFlag = false;
			return;
		}
		dragFlag = false;
		selectTargetId = currentSelectTargetId;
		selectTargetData = currentSelectTargetData;
		delectSelectTargetById(selectTargetId,false);
		// 根据鼠标拖拽放置的点坐标，更新caseElements数据
		updateCaseElements(selectTargetData, dropPointTarget.x, dropPointTarget.y);
		//设置当前拖拽的控件选中状态
		selectTargetId = selectTargetData.id;
		setSelectedById(selectTargetId);
		//绘制画布内容
		context.clearRect(0, 0, mycanvas.width, mycanvas.height);
		for (var i = 0; i < caseElements.length; i++) {
			setDrawSize(caseElements[i]);
		}
		resetCanvasHeight();
		// 绘制图形
		drawProcessChart(caseElements);
		canvasClick();
		console.log(caseElements);
		book("拖动成功！");
	};
	
	// 根据当前点击点的坐标获取点击的元素并设置选中
	// 画布内元素的清空和删除功能
	$("#emptyElements").click(function() {
		BootstrapDialog.show({
			title:"清空元素",
			message:'是否确定清空元素？',
			buttons : [ {
				icon : 'glyphicon glyphicon-check',
				label : '确定',
				cssClass : 'btn-primary',
				autospin : true,
				action : function(dialogRef) {
					selectTargetData = null;
					// 清空元素
					emptyElements(mycanvas);
					baseCaseEditeBool = true;// 释放复制粘贴快捷键
					dialogRef.close();
				}
			}, {
				label : '取消',
				action : function(dialogRef) {
					baseCaseEditeBool = true;// 释放复制粘贴快捷键
					dialogRef.close();
				}
			} ]
		});
	});
	//删除选中元素控件
	$("#deleteElements").click(function() {
		if(!baseCaseEditeBool){
			return;
		}
		resetMsg();
		selectTargetData = null;
		delectSelectTargetById(selectTargetId,true);
		context.clearRect(0, 0, mycanvas.width, mycanvas.height);
		for (var i = 0; i < caseElements.length; i++) {
			setDrawSize(caseElements[i]);
		}
		resetCanvasHeight();
		drawProcessChart(caseElements);
	});
	window.onresize = function() {
		var windowWidth = window.innerWidth;
		var centerWidth = windowWidth - 586;
		if(centerWidth<820){
			centerWidth = 820
		}
		$("#canvasDiv").width(centerWidth-20);
	};
	// 滚动滚动条，动态改变绘图的大小
	$('#canvasDiv').on(
			'scroll',
			function(e) {
				if ($(this).scrollLeft() === 0) {
				}
				if (($(this).width() + $(this).scrollLeft()) >= $('#canvasId')
						.width()) {
					canvase_width = canvase_width + 10;
					$("#canvasId").width(canvase_width);
					mycanvas.width = canvase_width;
					context.clearRect(0, 0, mycanvas.width, mycanvas.height);
					for (var i = 0; i < caseElements.length; i++) {
						setDrawSize(caseElements[i]);
					}
					resetCanvasHeight();
					drawProcessChart(caseElements);
				}
			});
	$("html,body").animate({scrollTop:0},5);
});
//进入当前界面后获取当前任务id的数据
function getInitDrawData(addBaseCaseId) {
	var dataStr = "[{\"id\":\"509EEE74A5A842AC8A60073F00BA2227\",\"name\":\"分支\",\"code\":\"015001\",\"type\":\"015\",\"leve\":\"2\",\"displayOrder\":0,\"description\":\"分支\",\"scriptContent\":null,\"attributes\":[{\"id\":\"EE7026EAD3D7438AAFBAAEB641712C42\",\"code\":\"009010002\",\"name\":\"期望分支\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"True\",\"displayValue\":\"左边\",\"defaultValue\":\"True\",\"displayOrder\":1,\"paramType\":2,\"paramOrder\":1,\"range\":\"\",\"dict\":\"056\",\"dicMu\":[]}],\"childrens\":[],\"leftChildrens\":[{\"id\":\"CA60E0B6CFA44CCCA79AD14DF9D2B675\",\"name\":\"异常退出\",\"code\":\"000000\",\"type\":\"000\",\"leve\":\"1\",\"displayOrder\":0,\"description\":\"退出本基本用例。发生错误时，不再执行本基本用例的后续代码。\",\"scriptContent\":\"return;\",\"attributes\":[],\"childrens\":[],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":80,\"height\":30,\"selected\":false,\"x\":30,\"y\":60},{\"id\":\"50DA8D6C0EE54ED5AFA79D9CFF2031F9\",\"name\":\"色灯循环\",\"code\":\"016001\",\"type\":\"016\",\"leve\":\"2\",\"displayOrder\":0,\"description\":\"色灯循环\",\"scriptContent\":null,\"attributes\":[{\"id\":\"EA93E45B747343ABB87041778EF704F0\",\"code\":\"004002001\",\"name\":\"总线类型\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"2\",\"displayValue\":\"CAN\",\"defaultValue\":\"2\",\"displayOrder\":1,\"paramType\":1,\"paramOrder\":1,\"range\":\"\",\"dict\":\"022\",\"dicMu\":[]},{\"id\":\"F8399931AF3C41F4901D7575E0A86149\",\"code\":\"016001001\",\"name\":\"色灯信号\",\"required\":\"0\",\"type\":\"4\",\"unit\":\"\",\"value\":\"3\",\"displayValue\":\"\",\"defaultValue\":\"3\",\"displayOrder\":2,\"paramType\":4,\"paramOrder\":2,\"range\":\"\",\"dict\":\"023\",\"dicMu\":[]},{\"id\":\"859B90594F8948059477CFAF41BA34B0\",\"code\":\"004002003\",\"name\":\"信号输出\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"3\",\"displayValue\":\"两系同时\",\"defaultValue\":\"3\",\"displayOrder\":3,\"paramType\":1,\"paramOrder\":3,\"range\":\"\",\"dict\":\"060\",\"dicMu\":[]}],\"childrens\":[],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":100,\"height\":45,\"selected\":false,\"x\":30,\"y\":105}],\"rightChildrens\":[{\"id\":\"5FE6575E37AC4B949EADF00A69167EF5\",\"name\":\"分支\",\"code\":\"015001\",\"type\":\"015\",\"leve\":\"2\",\"displayOrder\":0,\"description\":\"分支\",\"scriptContent\":null,\"attributes\":[{\"id\":\"B9971F017220444ABCEDC020A3AB9E1A\",\"code\":\"009010002\",\"name\":\"期望分支\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"True\",\"displayValue\":\"左边\",\"defaultValue\":\"True\",\"displayOrder\":1,\"paramType\":2,\"paramOrder\":1,\"range\":\"\",\"dict\":\"056\",\"dicMu\":[]}],\"childrens\":[],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":200,\"height\":45,\"selected\":false,\"leftWidth\":100,\"rightWidth\":100,\"x\":160,\"y\":60}],\"conditionList\":[{\"id\":\"75B5065569114203AA7FEF0CC0D732A5\",\"name\":\"总线数据\",\"code\":\"009001\",\"type\":\"009\",\"leve\":\"3\",\"displayOrder\":0,\"description\":\"获取总线数据判断是否满足条件\",\"scriptContent\":\"p1 ( ASTS_GetLKJFlag(p2,p3) p4 p5)\",\"attributes\":[{\"id\":\"B3020089C0C24ADFBF2852E910E2DA58\",\"code\":\"009001001\",\"name\":\"与上个条件关系\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\" \",\"displayValue\":\"空\",\"defaultValue\":\" \",\"displayOrder\":1,\"paramType\":1,\"paramOrder\":1,\"range\":\"\",\"dict\":\"051\",\"self_conditionType\":0,\"dicMu\":[]},{\"id\":\"265BB81191C14D37849E425040B80ED9\",\"code\":\"009001002\",\"name\":\"系模标志\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"0\",\"displayValue\":\"DMI工作模\",\"defaultValue\":\"0\",\"displayOrder\":2,\"paramType\":1,\"paramOrder\":2,\"range\":\"\",\"dict\":\"052\",\"dicMu\":[]},{\"id\":\"04247846A326467EBAC9467C25037076\",\"code\":\"009001003\",\"name\":\"数据项\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"0\",\"displayValue\":\"\",\"defaultValue\":\"0\",\"displayOrder\":3,\"paramType\":1,\"paramOrder\":3,\"range\":\"\",\"dict\":\"050\",\"dicMu\":[]},{\"id\":\"03A7B5E1D4CD4448B4BFDCCD89DC4BBF\",\"code\":\"009001004\",\"name\":\"关系符\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"==\",\"displayValue\":\"=\",\"defaultValue\":\"==\",\"displayOrder\":4,\"paramType\":1,\"paramOrder\":4,\"range\":\"\",\"dict\":\"053\",\"dicMu\":[]},{\"id\":\"F6FAD4E73B6E45E89361DB36060DFF22\",\"code\":\"009001005\",\"name\":\"结果值\",\"required\":\"0\",\"type\":\"1\",\"unit\":\"\",\"value\":\"0\",\"displayValue\":\"0\",\"defaultValue\":\"0\",\"displayOrder\":5,\"paramType\":1,\"paramOrder\":5,\"range\":\"\",\"dict\":\"\",\"dicMu\":[]}],\"childrens\":[],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":80,\"height\":30,\"selected\":false},{\"id\":\"96D9584D6A254AAD8CDFDDBE321EBCCF\",\"name\":\"DMI发音\",\"code\":\"009003\",\"type\":\"009\",\"leve\":\"3\",\"displayOrder\":0,\"description\":\"通过分析采集到的DMI发音数据，判断DMI是否正确发出了期待的语音。\",\"scriptContent\":\"p1 (ASTS_DMIVoiceValid(p2,p3,p4)==True)\",\"attributes\":[{\"id\":\"1285AEAB36144258B5F8B6680D79C11F\",\"code\":\"009001001\",\"name\":\"与上个条件关系\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"and\",\"displayValue\":\"and\",\"defaultValue\":\" \",\"displayOrder\":1,\"paramType\":1,\"paramOrder\":1,\"range\":\"\",\"dict\":\"051\",\"self_conditionType\":1,\"dicMu\":[]},{\"id\":\"5A9316EB6C0346CDB65D57FFC19CEA06\",\"code\":\"009003001\",\"name\":\"语音代码\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"1\",\"displayValue\":\"减速减速\",\"defaultValue\":\"1\",\"displayOrder\":2,\"paramType\":1,\"paramOrder\":2,\"range\":\"\",\"dict\":\"043\",\"dicMu\":[]},{\"id\":\"604818A6BF8047E0812201BDABA36E6F\",\"code\":\"009003002\",\"name\":\"延时时间\",\"required\":\"0\",\"type\":\"1\",\"unit\":\"S\",\"value\":\"3\",\"displayValue\":\"3\",\"defaultValue\":\"3\",\"displayOrder\":3,\"paramType\":1,\"paramOrder\":3,\"range\":\"\",\"dict\":\"\",\"dicMu\":[]},{\"id\":\"0486C750AF904E8D9851A5827F142741\",\"code\":\"009003003\",\"name\":\"应该发声\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"True\",\"displayValue\":\"True\",\"defaultValue\":\"True\",\"displayOrder\":4,\"paramType\":2,\"paramOrder\":4,\"range\":\"\",\"dict\":\"038\",\"dicMu\":[]}],\"childrens\":[],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":80,\"height\":30,\"selected\":false}],\"width\":360,\"height\":150,\"selected\":false,\"leftWidth\":130,\"rightWidth\":230,\"x\":15,\"y\":15},{\"id\":\"D9BC4873064D432E938D824CB46AB881\",\"name\":\"色灯循环\",\"code\":\"016001\",\"type\":\"016\",\"leve\":\"2\",\"displayOrder\":0,\"description\":\"色灯循环\",\"scriptContent\":null,\"attributes\":[{\"id\":\"8795F5C95A3846E8AA1705EEA33597FB\",\"code\":\"004002001\",\"name\":\"总线类型\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"2\",\"displayValue\":\"CAN\",\"defaultValue\":\"2\",\"displayOrder\":1,\"paramType\":1,\"paramOrder\":1,\"range\":\"\",\"dict\":\"022\",\"dicMu\":[]},{\"id\":\"53F66E15D6B0474298C56F551C310475\",\"code\":\"016001001\",\"name\":\"色灯信号\",\"required\":\"0\",\"type\":\"4\",\"unit\":\"\",\"value\":\"3\",\"displayValue\":\"\",\"defaultValue\":\"3\",\"displayOrder\":2,\"paramType\":4,\"paramOrder\":2,\"range\":\"\",\"dict\":\"023\",\"dicMu\":[]},{\"id\":\"9D86E1AB581A44D4B074CA8393BD9630\",\"code\":\"004002003\",\"name\":\"信号输出\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"3\",\"displayValue\":\"两系同时\",\"defaultValue\":\"3\",\"displayOrder\":3,\"paramType\":1,\"paramOrder\":3,\"range\":\"\",\"dict\":\"060\",\"dicMu\":[]}],\"childrens\":[],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":100,\"height\":45,\"selected\":false,\"x\":15,\"y\":180},{\"id\":\"B6F139816FD649D1A570E78FB01B154E\",\"name\":\"异常退出\",\"code\":\"000000\",\"type\":\"000\",\"leve\":\"1\",\"displayOrder\":0,\"description\":\"退出本基本用例。发生错误时，不再执行本基本用例的后续代码。\",\"scriptContent\":\"return;\",\"attributes\":[],\"childrens\":[],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":80,\"height\":30,\"selected\":false,\"x\":15,\"y\":240},{\"id\":\"67E88641854942F3A0D09F343BF93F10\",\"name\":\"色灯循环\",\"code\":\"016001\",\"type\":\"016\",\"leve\":\"2\",\"displayOrder\":0,\"description\":\"色灯循环\",\"scriptContent\":null,\"attributes\":[{\"id\":\"081EC33D9AD54E1E8F7FDA3B4442C786\",\"code\":\"004002001\",\"name\":\"总线类型\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"2\",\"displayValue\":\"CAN\",\"defaultValue\":\"2\",\"displayOrder\":1,\"paramType\":1,\"paramOrder\":1,\"range\":\"\",\"dict\":\"022\",\"dicMu\":[]},{\"id\":\"20E488CC42A34A4FB09E9F6B856AD6BD\",\"code\":\"016001001\",\"name\":\"色灯信号\",\"required\":\"0\",\"type\":\"4\",\"unit\":\"\",\"value\":\"3\",\"displayValue\":\"\",\"defaultValue\":\"3\",\"displayOrder\":2,\"paramType\":4,\"paramOrder\":2,\"range\":\"\",\"dict\":\"023\",\"dicMu\":[]},{\"id\":\"4CF780DB396640FE8D33BD0179E6E127\",\"code\":\"004002003\",\"name\":\"信号输出\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"3\",\"displayValue\":\"两系同时\",\"defaultValue\":\"3\",\"displayOrder\":3,\"paramType\":1,\"paramOrder\":3,\"range\":\"\",\"dict\":\"060\",\"dicMu\":[]}],\"childrens\":[{\"id\":\"E34EE11C43F14779805F7ED61327D793\",\"name\":\"分支\",\"code\":\"015001\",\"type\":\"015\",\"leve\":\"2\",\"displayOrder\":0,\"description\":\"分支\",\"scriptContent\":null,\"attributes\":[{\"id\":\"3B62248AB1954109BC8F0E17F71E0B10\",\"code\":\"009010002\",\"name\":\"期望分支\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"True\",\"displayValue\":\"左边\",\"defaultValue\":\"True\",\"displayOrder\":1,\"paramType\":2,\"paramOrder\":1,\"range\":\"\",\"dict\":\"056\",\"dicMu\":[]}],\"childrens\":[],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":200,\"height\":45,\"selected\":false,\"x\":30,\"y\":330,\"leftWidth\":100,\"rightWidth\":100}],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":230,\"height\":105,\"selected\":false,\"x\":15,\"y\":285}]";
	//当基本用例可以编辑时，点击基本用例树，直接追加到当前基本用例后面，如果不可编辑，那么直接查看点击的基本用例
	if(baseCaseEditeBool){
		caseElements = caseElements.concat(JSON.parse(dataStr));
	}else{
		caseElements = JSON.parse(dataStr);
	}
	//基本用例中所有id重置
	for(var i = 0;i<caseElements.length;i++){
		updateTargetId(caseElements[i]);
	}
	console.log(caseElements);
	caseElements[0].x = betweenTool;
	caseElements[0].y = betweenTool;
	
	//设置当前拖拽的控件选中状态
	selectTargetId = caseElements[0].id;
	setSelectedById(selectTargetId);
	
	context.clearRect(0, 0, mycanvas.width, mycanvas.height);
	for (var i = 0; i < caseElements.length; i++) {
		setDrawSize(caseElements[i]);
	}
	resetCanvasHeight();
	//初始化数据获取完成后，开始绘制图形
	drawProcessChart(caseElements);
	canvasClick();
	return;
	$.ajax({
		async : false,// 是否异步
		cache : false,// 是否使用缓存
		type : 'POST',// 请求方式：post
		dataType : 'json',// 数据传输格式：json
		data : {
			caseId : addBaseCaseId
		},
		url : "../../../basecase/getBaseCaseContentByCaseId",// 请求路径
		error : function(data) {
			danger(data.errorInfo);
		},
		success : function(data) {
			exportRaw('text.txt',JSON.stringify(data.content));
			if(data.flag == 0){
				getUUID(1);
				if(data.content =="" || data.content ==[] || data.content ==null || data.content =="[]"){
					return;
				}
				var dataStr = "[{\"id\":\"509EEE74A5A842AC8A60073F00BA2227\",\"name\":\"分支\",\"code\":\"015001\",\"type\":\"015\",\"leve\":\"2\",\"displayOrder\":0,\"description\":\"分支\",\"scriptContent\":null,\"attributes\":[{\"id\":\"EE7026EAD3D7438AAFBAAEB641712C42\",\"code\":\"009010002\",\"name\":\"期望分支\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"True\",\"displayValue\":\"左边\",\"defaultValue\":\"True\",\"displayOrder\":1,\"paramType\":2,\"paramOrder\":1,\"range\":\"\",\"dict\":\"056\",\"dicMu\":[]}],\"childrens\":[],\"leftChildrens\":[{\"id\":\"CA60E0B6CFA44CCCA79AD14DF9D2B675\",\"name\":\"异常退出\",\"code\":\"000000\",\"type\":\"000\",\"leve\":\"1\",\"displayOrder\":0,\"description\":\"退出本基本用例。发生错误时，不再执行本基本用例的后续代码。\",\"scriptContent\":\"return;\",\"attributes\":[],\"childrens\":[],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":80,\"height\":30,\"selected\":false,\"x\":30,\"y\":60},{\"id\":\"50DA8D6C0EE54ED5AFA79D9CFF2031F9\",\"name\":\"色灯循环\",\"code\":\"016001\",\"type\":\"016\",\"leve\":\"2\",\"displayOrder\":0,\"description\":\"色灯循环\",\"scriptContent\":null,\"attributes\":[{\"id\":\"EA93E45B747343ABB87041778EF704F0\",\"code\":\"004002001\",\"name\":\"总线类型\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"2\",\"displayValue\":\"CAN\",\"defaultValue\":\"2\",\"displayOrder\":1,\"paramType\":1,\"paramOrder\":1,\"range\":\"\",\"dict\":\"022\",\"dicMu\":[]},{\"id\":\"F8399931AF3C41F4901D7575E0A86149\",\"code\":\"016001001\",\"name\":\"色灯信号\",\"required\":\"0\",\"type\":\"4\",\"unit\":\"\",\"value\":\"3\",\"displayValue\":\"\",\"defaultValue\":\"3\",\"displayOrder\":2,\"paramType\":4,\"paramOrder\":2,\"range\":\"\",\"dict\":\"023\",\"dicMu\":[]},{\"id\":\"859B90594F8948059477CFAF41BA34B0\",\"code\":\"004002003\",\"name\":\"信号输出\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"3\",\"displayValue\":\"两系同时\",\"defaultValue\":\"3\",\"displayOrder\":3,\"paramType\":1,\"paramOrder\":3,\"range\":\"\",\"dict\":\"060\",\"dicMu\":[]}],\"childrens\":[],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":100,\"height\":45,\"selected\":false,\"x\":30,\"y\":105}],\"rightChildrens\":[{\"id\":\"5FE6575E37AC4B949EADF00A69167EF5\",\"name\":\"分支\",\"code\":\"015001\",\"type\":\"015\",\"leve\":\"2\",\"displayOrder\":0,\"description\":\"分支\",\"scriptContent\":null,\"attributes\":[{\"id\":\"B9971F017220444ABCEDC020A3AB9E1A\",\"code\":\"009010002\",\"name\":\"期望分支\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"True\",\"displayValue\":\"左边\",\"defaultValue\":\"True\",\"displayOrder\":1,\"paramType\":2,\"paramOrder\":1,\"range\":\"\",\"dict\":\"056\",\"dicMu\":[]}],\"childrens\":[],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":200,\"height\":45,\"selected\":false,\"leftWidth\":100,\"rightWidth\":100,\"x\":160,\"y\":60}],\"conditionList\":[{\"id\":\"75B5065569114203AA7FEF0CC0D732A5\",\"name\":\"总线数据\",\"code\":\"009001\",\"type\":\"009\",\"leve\":\"3\",\"displayOrder\":0,\"description\":\"获取总线数据判断是否满足条件\",\"scriptContent\":\"p1 ( ASTS_GetLKJFlag(p2,p3) p4 p5)\",\"attributes\":[{\"id\":\"B3020089C0C24ADFBF2852E910E2DA58\",\"code\":\"009001001\",\"name\":\"与上个条件关系\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\" \",\"displayValue\":\"空\",\"defaultValue\":\" \",\"displayOrder\":1,\"paramType\":1,\"paramOrder\":1,\"range\":\"\",\"dict\":\"051\",\"self_conditionType\":0,\"dicMu\":[]},{\"id\":\"265BB81191C14D37849E425040B80ED9\",\"code\":\"009001002\",\"name\":\"系模标志\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"0\",\"displayValue\":\"DMI工作模\",\"defaultValue\":\"0\",\"displayOrder\":2,\"paramType\":1,\"paramOrder\":2,\"range\":\"\",\"dict\":\"052\",\"dicMu\":[]},{\"id\":\"04247846A326467EBAC9467C25037076\",\"code\":\"009001003\",\"name\":\"数据项\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"0\",\"displayValue\":\"\",\"defaultValue\":\"0\",\"displayOrder\":3,\"paramType\":1,\"paramOrder\":3,\"range\":\"\",\"dict\":\"050\",\"dicMu\":[]},{\"id\":\"03A7B5E1D4CD4448B4BFDCCD89DC4BBF\",\"code\":\"009001004\",\"name\":\"关系符\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"==\",\"displayValue\":\"=\",\"defaultValue\":\"==\",\"displayOrder\":4,\"paramType\":1,\"paramOrder\":4,\"range\":\"\",\"dict\":\"053\",\"dicMu\":[]},{\"id\":\"F6FAD4E73B6E45E89361DB36060DFF22\",\"code\":\"009001005\",\"name\":\"结果值\",\"required\":\"0\",\"type\":\"1\",\"unit\":\"\",\"value\":\"0\",\"displayValue\":\"0\",\"defaultValue\":\"0\",\"displayOrder\":5,\"paramType\":1,\"paramOrder\":5,\"range\":\"\",\"dict\":\"\",\"dicMu\":[]}],\"childrens\":[],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":80,\"height\":30,\"selected\":false},{\"id\":\"96D9584D6A254AAD8CDFDDBE321EBCCF\",\"name\":\"DMI发音\",\"code\":\"009003\",\"type\":\"009\",\"leve\":\"3\",\"displayOrder\":0,\"description\":\"通过分析采集到的DMI发音数据，判断DMI是否正确发出了期待的语音。\",\"scriptContent\":\"p1 (ASTS_DMIVoiceValid(p2,p3,p4)==True)\",\"attributes\":[{\"id\":\"1285AEAB36144258B5F8B6680D79C11F\",\"code\":\"009001001\",\"name\":\"与上个条件关系\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"and\",\"displayValue\":\"and\",\"defaultValue\":\" \",\"displayOrder\":1,\"paramType\":1,\"paramOrder\":1,\"range\":\"\",\"dict\":\"051\",\"self_conditionType\":1,\"dicMu\":[]},{\"id\":\"5A9316EB6C0346CDB65D57FFC19CEA06\",\"code\":\"009003001\",\"name\":\"语音代码\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"1\",\"displayValue\":\"减速减速\",\"defaultValue\":\"1\",\"displayOrder\":2,\"paramType\":1,\"paramOrder\":2,\"range\":\"\",\"dict\":\"043\",\"dicMu\":[]},{\"id\":\"604818A6BF8047E0812201BDABA36E6F\",\"code\":\"009003002\",\"name\":\"延时时间\",\"required\":\"0\",\"type\":\"1\",\"unit\":\"S\",\"value\":\"3\",\"displayValue\":\"3\",\"defaultValue\":\"3\",\"displayOrder\":3,\"paramType\":1,\"paramOrder\":3,\"range\":\"\",\"dict\":\"\",\"dicMu\":[]},{\"id\":\"0486C750AF904E8D9851A5827F142741\",\"code\":\"009003003\",\"name\":\"应该发声\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"True\",\"displayValue\":\"True\",\"defaultValue\":\"True\",\"displayOrder\":4,\"paramType\":2,\"paramOrder\":4,\"range\":\"\",\"dict\":\"038\",\"dicMu\":[]}],\"childrens\":[],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":80,\"height\":30,\"selected\":false}],\"width\":360,\"height\":150,\"selected\":false,\"leftWidth\":130,\"rightWidth\":230,\"x\":15,\"y\":15},{\"id\":\"D9BC4873064D432E938D824CB46AB881\",\"name\":\"色灯循环\",\"code\":\"016001\",\"type\":\"016\",\"leve\":\"2\",\"displayOrder\":0,\"description\":\"色灯循环\",\"scriptContent\":null,\"attributes\":[{\"id\":\"8795F5C95A3846E8AA1705EEA33597FB\",\"code\":\"004002001\",\"name\":\"总线类型\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"2\",\"displayValue\":\"CAN\",\"defaultValue\":\"2\",\"displayOrder\":1,\"paramType\":1,\"paramOrder\":1,\"range\":\"\",\"dict\":\"022\",\"dicMu\":[]},{\"id\":\"53F66E15D6B0474298C56F551C310475\",\"code\":\"016001001\",\"name\":\"色灯信号\",\"required\":\"0\",\"type\":\"4\",\"unit\":\"\",\"value\":\"3\",\"displayValue\":\"\",\"defaultValue\":\"3\",\"displayOrder\":2,\"paramType\":4,\"paramOrder\":2,\"range\":\"\",\"dict\":\"023\",\"dicMu\":[]},{\"id\":\"9D86E1AB581A44D4B074CA8393BD9630\",\"code\":\"004002003\",\"name\":\"信号输出\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"3\",\"displayValue\":\"两系同时\",\"defaultValue\":\"3\",\"displayOrder\":3,\"paramType\":1,\"paramOrder\":3,\"range\":\"\",\"dict\":\"060\",\"dicMu\":[]}],\"childrens\":[],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":100,\"height\":45,\"selected\":false,\"x\":15,\"y\":180},{\"id\":\"B6F139816FD649D1A570E78FB01B154E\",\"name\":\"异常退出\",\"code\":\"000000\",\"type\":\"000\",\"leve\":\"1\",\"displayOrder\":0,\"description\":\"退出本基本用例。发生错误时，不再执行本基本用例的后续代码。\",\"scriptContent\":\"return;\",\"attributes\":[],\"childrens\":[],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":80,\"height\":30,\"selected\":false,\"x\":15,\"y\":240},{\"id\":\"67E88641854942F3A0D09F343BF93F10\",\"name\":\"色灯循环\",\"code\":\"016001\",\"type\":\"016\",\"leve\":\"2\",\"displayOrder\":0,\"description\":\"色灯循环\",\"scriptContent\":null,\"attributes\":[{\"id\":\"081EC33D9AD54E1E8F7FDA3B4442C786\",\"code\":\"004002001\",\"name\":\"总线类型\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"2\",\"displayValue\":\"CAN\",\"defaultValue\":\"2\",\"displayOrder\":1,\"paramType\":1,\"paramOrder\":1,\"range\":\"\",\"dict\":\"022\",\"dicMu\":[]},{\"id\":\"20E488CC42A34A4FB09E9F6B856AD6BD\",\"code\":\"016001001\",\"name\":\"色灯信号\",\"required\":\"0\",\"type\":\"4\",\"unit\":\"\",\"value\":\"3\",\"displayValue\":\"\",\"defaultValue\":\"3\",\"displayOrder\":2,\"paramType\":4,\"paramOrder\":2,\"range\":\"\",\"dict\":\"023\",\"dicMu\":[]},{\"id\":\"4CF780DB396640FE8D33BD0179E6E127\",\"code\":\"004002003\",\"name\":\"信号输出\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"3\",\"displayValue\":\"两系同时\",\"defaultValue\":\"3\",\"displayOrder\":3,\"paramType\":1,\"paramOrder\":3,\"range\":\"\",\"dict\":\"060\",\"dicMu\":[]}],\"childrens\":[{\"id\":\"E34EE11C43F14779805F7ED61327D793\",\"name\":\"分支\",\"code\":\"015001\",\"type\":\"015\",\"leve\":\"2\",\"displayOrder\":0,\"description\":\"分支\",\"scriptContent\":null,\"attributes\":[{\"id\":\"3B62248AB1954109BC8F0E17F71E0B10\",\"code\":\"009010002\",\"name\":\"期望分支\",\"required\":\"0\",\"type\":\"3\",\"unit\":\"\",\"value\":\"True\",\"displayValue\":\"左边\",\"defaultValue\":\"True\",\"displayOrder\":1,\"paramType\":2,\"paramOrder\":1,\"range\":\"\",\"dict\":\"056\",\"dicMu\":[]}],\"childrens\":[],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":200,\"height\":45,\"selected\":false,\"x\":30,\"y\":330,\"leftWidth\":100,\"rightWidth\":100}],\"leftChildrens\":[],\"rightChildrens\":[],\"conditionList\":[],\"width\":230,\"height\":105,\"selected\":false,\"x\":15,\"y\":285}]";
				//当基本用例可以编辑时，点击基本用例树，直接追加到当前基本用例后面，如果不可编辑，那么直接查看点击的基本用例
				if(baseCaseEditeBool){
					caseElements = caseElements.concat(JSON.parse(dataStr));
				}else{
					caseElements = JSON.parse(dataStr);
				}
				//基本用例中所有id重置
				for(var i = 0;i<caseElements.length;i++){
					updateTargetId(caseElements[i]);
				}
				console.log(caseElements);
				caseElements[0].x = betweenTool;
				caseElements[0].y = betweenTool;
				
				//设置当前拖拽的控件选中状态
				selectTargetId = caseElements[0].id;
				setSelectedById(selectTargetId);
				
				context.clearRect(0, 0, mycanvas.width, mycanvas.height);
				for (var i = 0; i < caseElements.length; i++) {
					setDrawSize(caseElements[i]);
				}
				resetCanvasHeight();
				//初始化数据获取完成后，开始绘制图形
				drawProcessChart(caseElements);
				canvasClick();
			}else{
				danger(data.errorInfo);
			}
		}
	});
}

//获取数据中下拉框的数据
function getSelectListData(id){
	if(selectAllListData.length<=0){
		selectAllListData = [{"code":"001","dict":[{"id":"001","name":"速度"},{"id":"002","name":"压力"},{"id":"003","name":"工况"},{"id":"004","name":"信号"},{"id":"007","name":"人机交互"},{"id":"008","name":"相关设备"},{"id":"009","name":"检查点"},{"id":"010","name":"延时"}]},{"code":"002","dict":[{"id":"001","name":"设备检测与维护"},{"id":"002","name":"待机模式"},{"id":"003","name":"出入段模式"},{"id":"004","name":"调车模式"},{"id":"005","name":"降级模式"},{"id":"006","name":"通常模式"},{"id":"007","name":"随时停车模式"},{"id":"008","name":"无防冒模式"},{"id":"009","name":"非本务模式"},{"id":"010","name":"与其他ATP结合模式"},{"id":"011","name":"特殊行车"}]},{"code":"003","dict":[{"id":"1","name":"基本控件"},{"id":"2","name":"逻辑控件"},{"id":"3","name":"图形控件"}]},{"code":"004","dict":[{"id":"0","name":"0度"},{"id":"2","name":"90度"},{"id":"6","name":"270度"}]},{"code":"005","dict":[{"id":"-1","name":"保持"},{"id":"1","name":"牵引"},{"id":"0","name":"空"}]},{"code":"006","dict":[{"id":"1","name":"Ⅰ端电鸣笛"},{"id":"2","name":"Ⅰ端风鸣笛"},{"id":"3","name":"Ⅱ端电鸣笛"},{"id":"4","name":"Ⅱ端风鸣笛"}]},{"code":"007","dict":[{"id":"1","name":"1.交大思诺"},{"id":"2","name":"2.山西润泽丰"},{"id":"3","name":"3.深圳长龙"},{"id":"4","name":"4.哈尔滨科佳"}]},{"code":"008","dict":[{"id":"0","name":"上下行未知"},{"id":"1","name":"上行"},{"id":"2","name":"下行"},{"id":"3","name":"上下行错误"}]},{"code":"009","dict":[{"id":"0","name":"无载频"},{"id":"1","name":"移频-550Hz"},{"id":"2","name":"移频-750Hz"},{"id":"3","name":"移频-650Hz"},{"id":"4","name":"移频-850Hz"},{"id":"5","name":"UM71-1700Hz(ZPW2000 1700-1或1700-2)"},{"id":"6","name":"UM71-2300Hz(ZPW2000 2300-1或2300-2)"},{"id":"7","name":"UM71-2000Hz(ZPW2000 2000-1或2000-2)"},{"id":"8","name":"UM71-2600Hz(ZPW2000 2600-1或2600-2)"},{"id":"9","name":"交流计数-25Hz(A)"},{"id":"10","name":"交流计数-25Hz(B)"},{"id":"11","name":"交流计数-50Hz(A)"},{"id":"12","name":"交流计数-50Hz(B)"},{"id":"13","name":"极频"}]},{"code":"011","dict":[{"id":"15","name":"无码"},{"id":"33","name":"停车"},{"id":"34","name":"推进"},{"id":"3","name":"起动"},{"id":"36","name":"连结"},{"id":"5","name":"溜放"},{"id":"6","name":"减速"},{"id":"39","name":"十车"},{"id":"40","name":"五车"},{"id":"9","name":"三车"},{"id":"46","name":"故障停车"},{"id":"43","name":"收放权"},{"id":"48","name":"急停1"},{"id":"17","name":"急停2"},{"id":"18","name":"急停3"},{"id":"51","name":"急停4"},{"id":"20","name":"急停5"},{"id":"53","name":"急停6"},{"id":"54","name":"急停7"},{"id":"23","name":"急停8"},{"id":"24","name":"解锁1"},{"id":"57","name":"解锁2"},{"id":"58","name":"解锁3"},{"id":"27","name":"解锁4"},{"id":"60","name":"解锁5"},{"id":"29","name":"解锁6"},{"id":"30","name":"解锁7"},{"id":"63","name":"解锁8"},{"id":"44","name":"推进稍动"},{"id":"10","name":"牵出稍动"}]},{"code":"012","dict":[{"id":"0","name":"无载频"},{"id":"1","name":"移频-550Hz"},{"id":"2","name":"移频-750Hz"},{"id":"3","name":"移频-650Hz"},{"id":"4","name":"移频-850Hz"},{"id":"5","name":"UM71-1700Hz"},{"id":"6","name":"UM71-2300Hz"},{"id":"7","name":"UM71-2000Hz"},{"id":"8","name":"UM71-2600Hz"},{"id":"9","name":"交流计数-25Hz(A)"},{"id":"10","name":"交流计数-25Hz(B)"},{"id":"11","name":"交流计数-50Hz(A)"},{"id":"12","name":"交流计数-50Hz(B)"},{"id":"13","name":"极频"}]},{"code":"013","dict":[{"id":"1","name":"自闭"},{"id":"2","name":"半自闭"}]},{"code":"014","dict":[{"id":"0","name":"上下行未知"},{"id":"1","name":"上行"},{"id":"2","name":"下行"},{"id":"3","name":"上下行错误"}]},{"code":"015","dict":[{"id":"01","name":"LKJ15S测试"},{"id":"02","name":"其他设备测试"}]},{"code":"017","dict":[{"id":"无","name":"无"},{"id":"if","name":"if"},{"id":"while","name":"while"}]},{"code":"018","dict":[{"id":"1","name":"零位"},{"id":"2","name":"向前"},{"id":"4","name":"向后"},{"id":"8","name":"牵引"},{"id":"16","name":"制动"},{"id":"32","name":"I端警惕"},{"id":"64","name":"II端警惕"},{"id":"128","name":"隔离位"},{"id":"256","name":"车档"},{"id":"512","name":"ATP控车"}]},{"code":"019","dict":[{"id":"1","name":"开"},{"id":"2","name":"关"}]},{"code":"020","dict":[{"id":"-1","name":"保持"},{"id":"1","name":"向前"},{"id":"0","name":"空"}]},{"code":"021","dict":[{"id":"-1","name":"保持"},{"id":"0","name":"非零位"},{"id":"1","name":"零位"}]},{"code":"022","dict":[{"id":"1","name":"并行"},{"id":"2","name":"CAN"}]},{"code":"023","dict":[{"id":"1","name":"L3码"},{"id":"2","name":"L2码"},{"id":"3","name":"L码"},{"id":"4","name":"LU码"},{"id":"5","name":"LU2码"},{"id":"6","name":"U码"},{"id":"7","name":"U2S码"},{"id":"8","name":"U2码"},{"id":"9","name":"U3码"},{"id":"10","name":"UUS码"},{"id":"11","name":"UU码"},{"id":"12","name":"HB码(HUS)"},{"id":"13","name":"HU码"},{"id":"14","name":"有码H码"},{"id":"15","name":"L4码"},{"id":"16","name":"L5码"},{"id":"17","name":"未知"},{"id":"18","name":"ZPW2000 JC码(27.9Hz)"},{"id":"19","name":"无码红灯"},{"id":"20","name":"无码白灯"}]},{"code":"024","dict":[{"id":"1","name":"过机"},{"id":"2","name":"不过机"}]},{"code":"025","dict":[{"id":"1","name":"开车"},{"id":"2","name":"确认"}]},{"code":"026","dict":[{"id":"1","name":"开始发送"},{"id":"2","name":"停止发送"}]},{"code":"027","dict":[{"id":"-1","name":"类型不限"},{"id":"0","name":"无信号机"},{"id":"1","name":"接车进路信号"},{"id":"2","name":"进站信号机"},{"id":"3","name":"接发车进路信号机"},{"id":"4","name":"发车进路信号机"},{"id":"5","name":"出站信号机"},{"id":"6","name":"通过信号机"},{"id":"7","name":"容许信号机"},{"id":"8","name":"接近信号机"},{"id":"9","name":"预告信号机"},{"id":"10","name":"分割信号机"},{"id":"11","name":"线路所通过信号机"},{"id":"12","name":"腰岔信号机"},{"id":"40","name":"信号标志牌"}]},{"code":"028","dict":[{"id":"1","name":"待机"},{"id":"2","name":"出入段"},{"id":"3","name":"调车"},{"id":"4","name":"降级"},{"id":"5","name":"通常"},{"id":"6","name":"随时停车模式"},{"id":"7","name":"非本务"},{"id":"8","name":"无防冒"},{"id":"9","name":"与其它ATP结合"}]},{"code":"029","dict":[{"id":"1","name":"正常位"},{"id":"2","name":"隔离位"}]},{"code":"030","dict":[{"id":"-1","name":"保持"},{"id":"1","name":"LKJ控车"},{"id":"0","name":"ATP控车"}]},{"code":"031","dict":[{"id":"1","name":"L3码"},{"id":"2","name":"L2码"},{"id":"3","name":"L码"},{"id":"4","name":"LU码"},{"id":"5","name":"LU2码"},{"id":"6","name":"U码"},{"id":"7","name":"U2S码"},{"id":"8","name":"U2码"},{"id":"9","name":"U3码"},{"id":"10","name":"UUS码"},{"id":"11","name":"UU码"},{"id":"12","name":"HB码(HUS)"},{"id":"13","name":"HU码"},{"id":"14","name":"有码H码"},{"id":"15","name":"L4码"},{"id":"16","name":"L5码"},{"id":"17","name":"未知"},{"id":"18","name":"ZPW2000 JC码(27.9Hz)"},{"id":"19","name":"无码红灯"},{"id":"20","name":"无码白灯"},{"id":"21","name":"L6码"},{"id":"22","name":"灭灯"},{"id":"23","name":"ZPW2000 SP码(25.7Hz)"}]},{"code":"032","dict":[{"id":"1","name":"I系"},{"id":"2","name":"II系"},{"id":"3","name":"两系同时"}]},{"code":"033","dict":[{"id":"1","name":"按键"},{"id":"2","name":"触摸屏"}]},{"code":"034","dict":[{"id":"1","name":"警惕"},{"id":"2","name":"解锁"},{"id":"8","name":"向前/1"},{"id":"32","name":"支线选择/2"},{"id":"128","name":"车位/3"},{"id":"512","name":"股道输入/4"},{"id":"2048","name":"定标/5"},{"id":"8192","name":"模式"},{"id":"32768","name":"上键"},{"id":"131072","name":"转储"},{"id":"4","name":"缓解"},{"id":"16","name":"操作权/6"},{"id":"64","name":"开车/7"},{"id":"256","name":"距离校正/8"},{"id":"1024","name":"解释解除/9"},{"id":"4096","name":"巡检/0"},{"id":"16384","name":"左键"},{"id":"262144","name":"右键"},{"id":"524288","name":"设定"},{"id":"65536","name":"下键"},{"id":"1048576","name":"确认"},{"id":"134217728","name":"菜单"},{"id":"67108864","name":"F1"},{"id":"33554432","name":"F2"},{"id":"16777216","name":"F3"},{"id":"8388608","name":"F4"},{"id":"4194304","name":"F5"},{"id":"2097152","name":"F6"},{"id":"268435456","name":"F7"},{"id":"536870912","name":"F8"}]},{"code":"035","dict":[{"id":"-1","name":"保持"},{"id":"1","name":"制动"},{"id":"0","name":"空"}]},{"code":"036","dict":[{"id":"-1","name":"保持"},{"id":"1","name":"向后"},{"id":"0","name":"空"}]},{"code":"037","dict":[{"id":"2","name":"西门子"},{"id":"1","name":"交大"}]},{"code":"038","dict":[{"id":"True","name":"True"},{"id":"False","name":"False"}]},{"code":"039","dict":[{"id":"1","name":"卸载"},{"id":"2","name":"紧急1"},{"id":"4","name":"紧急2"},{"id":"8","name":"减压"},{"id":"16","name":"关风"}]},{"code":"040","dict":[{"id":"-1","name":"保持"},{"id":"0","name":"隔离位"},{"id":"1","name":"正常位"}]},{"code":"041","dict":[{"id":"0","name":"正常"},{"id":"85","name":"未知"},{"id":"4","name":"警告"},{"id":"255","name":"故障"}]},{"code":"042","dict":[{"id":"1","name":"待机模式"},{"id":"2","name":"出入段模式"},{"id":"3","name":"调车模式"},{"id":"4","name":"降级模式"},{"id":"5","name":"通常模式"},{"id":"6","name":"随时停车模式"},{"id":"7","name":"非本务模式"},{"id":"8","name":"无防冒模式"},{"id":"9","name":"与其它ATP结合"}]},{"code":"043","dict":[{"id":"1","name":"减速减速"},{"id":"10","name":"请确认调车信号"},{"id":"112","name":"确定司机号"},{"id":"113","name":"确定列车类型"},{"id":"114","name":"确定车种标识"},{"id":"115","name":"确定车次号码"},{"id":"116","name":"确定牵引总重"},{"id":"117","name":"确定辆数"},{"id":"118","name":"确定计长"},{"id":"119","name":"确定车速等级"},{"id":"120","name":"确定制动类型"},{"id":"121","name":"确定起始站"},{"id":"122","name":"确定站场"},{"id":"123","name":"确定发车方向"},{"id":"124","name":"确定终止站"},{"id":"125","name":"确定运行径路"},{"id":"126","name":"确定发车股道"},{"id":"127","name":"请确认临时控制参数"},{"id":"144","name":"立即停车"},{"id":"145","name":"十车"},{"id":"146","name":"五车"},{"id":"147","name":"三车"},{"id":"148","name":"一车"},{"id":"149","name":"启动"},{"id":"150","name":"推进"},{"id":"151","name":"连结"},{"id":"152","name":"溜放"},{"id":"153","name":"紧急停车"},{"id":"154","name":"紧急停车1"},{"id":"155","name":"紧急停车2"},{"id":"156","name":"紧急停车3"},{"id":"157","name":"紧急停车4"},{"id":"158","name":"紧急停车5"},{"id":"159","name":"紧急停车6"},{"id":"16","name":"卸载动作"},{"id":"160","name":"紧急停车7"},{"id":"161","name":"紧急停车8"},{"id":"162","name":"解锁"},{"id":"163","name":"解锁1"},{"id":"164","name":"解锁2"},{"id":"165","name":"解锁3"},{"id":"166","name":"解锁4"},{"id":"167","name":"解锁5"},{"id":"168","name":"解锁6"},{"id":"169","name":"解锁7"},{"id":"17","name":"常用制动"},{"id":"170","name":"解锁8"},{"id":"171","name":"收权"},{"id":"172","name":"放权"},{"id":"173","name":"故障停车"},{"id":"174","name":"减速"},{"id":"175","name":"推进稍动"},{"id":"176","name":"牵出稍动"},{"id":"18","name":"紧急制动"},{"id":"19","name":"限速下降"},{"id":"2","name":"发生空转"},{"id":"20","name":"请注意防溜"},{"id":"21","name":"请注意管压防溜"},{"id":"22","name":"请注意手柄防溜"},{"id":"23","name":"请注意相位防溜"},{"id":"232","name":"白灯"},{"id":"24","name":"防溜制动"},{"id":"25","name":"管压防溜制动"},{"id":"26","name":"手柄防溜制动"},{"id":"265","name":"前方道口注意鸣笛"},{"id":"266","name":"欠压运行"},{"id":"267","name":"接近防洪地段"},{"id":"268","name":"文件换装进行中请勿动车"},{"id":"27","name":"相位防溜制动"},{"id":"28","name":"LKJ投入控制"},{"id":"29","name":"LKJ退出控制"},{"id":"3","name":"发生轮滑"},{"id":"30","name":"绿灯"},{"id":"31","name":"绿2灯"},{"id":"32","name":"绿3灯"},{"id":"33","name":"绿4灯"},{"id":"34","name":"绿5灯"},{"id":"35","name":"绿6灯"},{"id":"36","name":"绿黄灯"},{"id":"37","name":"绿黄2"},{"id":"38","name":"黄灯"},{"id":"39","name":"黄2灯"},{"id":"4","name":"速度信号故障"},{"id":"40","name":"黄3灯"},{"id":"41","name":"红黄灯"},{"id":"42","name":"红灯"},{"id":"43","name":"黄2闪"},{"id":"44","name":"双黄闪"},{"id":"45","name":"双黄灯"},{"id":"46","name":"红黄闪"},{"id":"47","name":"白灯"},{"id":"48","name":"信号异常"},{"id":"49","name":"允许缓解"},{"id":"5","name":"请注意距离误差"},{"id":"50","name":"接近断电标"},{"id":"51","name":"鸣笛地点"},{"id":"52","name":"车机联控地点"},{"id":"53","name":"道机联控地点"},{"id":"54","name":"请注意风压"},{"id":"55","name":"请注意迟缓"},{"id":"56","name":"请注意试闸"},{"id":"57","name":"通用控制"},{"id":"58","name":"万吨控制"},{"id":"59","name":"待机模式"},{"id":"6","name":"接近制式转换地点"},{"id":"60","name":"段内走行模式"},{"id":"61","name":"调车模式"},{"id":"62","name":"降级模式"},{"id":"63","name":"通常模式"},{"id":"64","name":"随时停车模式"},{"id":"65","name":"非本务模式"},{"id":"66","name":"无防冒模式"},{"id":"67","name":"与其他ATP结合模式"},{"id":"68","name":"万吨模式"},{"id":"69","name":"前进牵引位"},{"id":"7","name":"请确认信号"},{"id":"70","name":"前进制动位"},{"id":"71","name":"后进牵引位"},{"id":"72","name":"后进制动位"},{"id":"73","name":"接近一级防洪地段，工机联控"},{"id":"74","name":"接近二级防洪地段"},{"id":"75","name":"接近沙害地段"},{"id":"76","name":"请注意信号"},{"id":"77","name":"请确定车次"},{"id":"78","name":"车挡预警地点"},{"id":"79","name":"请选择限速"},{"id":"8","name":"请停车"},{"id":"80","name":"反向运行"},{"id":"81","name":"接近临时限速区段"},{"id":"82","name":"请注意开车对标"},{"id":"83","name":"接近支线分岐地点"},{"id":"84","name":"请注意运行"},{"id":"85","name":"请输入股道号"},{"id":"86","name":"缓解成功"},{"id":"87","name":"解锁操作成功"},{"id":"88","name":"揭示解除成功"},{"id":"89","name":"巡检操作完成"},{"id":"9","name":"输入无效"},{"id":"90","name":"常用制动试验"},{"id":"91","name":"紧急制动试验"},{"id":"92","name":"制动试验结束"},{"id":"93","name":"进入C0区段"},{"id":"94","name":"进入C1区段"},{"id":"95","name":"进入C2区段"},{"id":"96","name":"进入C3区段"},{"id":"97","name":"动车确认有效"}]},{"code":"044","dict":[{"id":"1","name":"信号色灯"},{"id":"2","name":"速度"},{"id":"3","name":"限速"},{"id":"4","name":"里程及位置"},{"id":"5","name":"LKJ时间"},{"id":"6","name":"手柄工况"},{"id":"7","name":"各种管压"},{"id":"8","name":"标志"},{"id":"9","name":"制动计算"},{"id":"21","name":"进入C2区段"},{"id":"22","name":"I系宕机"},{"id":"23","name":"II系宕机"},{"id":"101","name":"手柄防溜"},{"id":"102","name":"相位防溜"},{"id":"103","name":"管压防溜"},{"id":"104","name":"绿色凭证行车"},{"id":"105","name":"路票行车"},{"id":"106","name":"允许缓解"},{"id":"107","name":"允许开车"},{"id":"108","name":"卸载"},{"id":"109","name":"常用"},{"id":"110","name":"紧急"},{"id":"111","name":"特殊前行"},{"id":"112","name":"降级报警"}]},{"code":"045","dict":[{"id":"1","name":"紧急"},{"id":"8","name":"卸载"},{"id":"16","name":"减压"},{"id":"32","name":"关风"}]},{"code":"047","dict":[{"id":"-1","name":"保持"},{"id":"1","name":"得电"},{"id":"0","name":"失电"}]},{"code":"048","dict":[{"id":"-1","name":"保持"},{"id":"1","name":"有输出"},{"id":"0","name":"无输出"}]},{"code":"049","dict":[{"id":"0","name":"动车组"},{"id":"1","name":"对应A类"},{"id":"2","name":"对应B类"},{"id":"3","name":"对应C类"},{"id":"4","name":"对应D类"},{"id":"5","name":"对应C/D类"}]},{"code":"050","dict":[{"id":"1","name":"速度"},{"id":"2","name":"里程"},{"id":"6","name":"信号"},{"id":"3","name":"信号机编号"},{"id":"7","name":"限速"},{"id":"4","name":"信号机类型"},{"id":"8","name":"列车管压力"},{"id":"9","name":"制动缸压力"},{"id":"5","name":"距离"},{"id":"10","name":"均缸压力"},{"id":"12","name":"工作模式"},{"id":"13","name":"开关量状态"},{"id":"15","name":"轮径"},{"id":"17","name":"速度脉冲数"},{"id":"18","name":"柴速脉冲"},{"id":"19","name":"双针表量程"},{"id":"20","name":"机车型号"},{"id":"21","name":"辆数"},{"id":"22","name":"计长"},{"id":"23","name":"制动类型"},{"id":"24","name":"当前坡度"},{"id":"25","name":"车速等级"},{"id":"26","name":"时间"},{"id":"36","name":"语音代码"},{"id":"101","name":"制动输出-紧急"},{"id":"102","name":"制动输出-故障1"},{"id":"103","name":"制动输出-故障2"},{"id":"104","name":"制动输出-卸载"},{"id":"105","name":"制动输出-减压"},{"id":"106","name":"制动输出-关风"},{"id":"41","name":"ZTL报警"},{"id":"42","name":"管压防溜报警"},{"id":"43","name":"相位防溜报警"},{"id":"44","name":"手柄防溜报警"},{"id":"45","name":"缓解不开车防溜报警"},{"id":"46","name":"周期警惕报警"},{"id":"47","name":"进站确认报警"},{"id":"48","name":"动车确认报警"},{"id":"49","name":"信号突变报警"},{"id":"50","name":"随时停车模式"},{"id":"51","name":"空转报警"},{"id":"52","name":"轮滑报警"},{"id":"53","name":"限速报警"},{"id":"54","name":"速度故障报警"},{"id":"55","name":"BTM故障报警"},{"id":"71","name":"ZTL报警倒计时"},{"id":"72","name":"调车动车确认倒计时"},{"id":"73","name":"防溜倒计时"},{"id":"74","name":"警惕倒计时"},{"id":"75","name":"信号突变倒计时"},{"id":"81","name":"打靶分区数"},{"id":"82","name":"侧线号"},{"id":"83","name":"显示控制"},{"id":"84","name":"操作允许标志"},{"id":"90","name":"LKJ宕机"},{"id":"501","name":"解锁成功"},{"id":"502","name":"弹出侧线输入窗口"},{"id":"503","name":"应答器丢失"},{"id":"504","name":"BTM开车对标"},{"id":"505","name":"BTM自动校正"},{"id":"506","name":"GPS自动校正"},{"id":"507","name":"GPS开车对标"},{"id":"508","name":"调用数据"},{"id":"509","name":"过应答器"},{"id":"510","name":"揭示校验非法"},{"id":"511","name":"平常状态"},{"id":"512","name":"前端巡检"},{"id":"513","name":"后端巡检"},{"id":"514","name":"巡检完成"},{"id":"515","name":"定标"},{"id":"516","name":"过机不校"},{"id":"517","name":"过机校正"},{"id":"518","name":"过站中心"},{"id":"520","name":"DMI左上角显示区间作业(防碰)"},{"id":"521","name":"DMI左上角显示区间作业(返回)"},{"id":"522","name":"DMI左上角显示区间作业(进入)"},{"id":"523","name":"DMI左上角显示”退行控制”"},{"id":"524","name":"DMI左上角显示”救援控制”"},{"id":"525","name":"列车当前处于站内"},{"id":"526","name":"允许自动弹出提示信息显示窗口"},{"id":"527","name":"应答器区段"},{"id":"528","name":"显示特殊前行剩余距离窗口"},{"id":"529","name":"显示车挡目标点信息"},{"id":"530","name":"土挡控制有效"},{"id":"531","name":"万吨列车"},{"id":"532","name":"大秦发码特殊信号机提示"},{"id":"533","name":"重载列车"},{"id":"534","name":"非本务工作状态预画限速曲线"},{"id":"535","name":"防汛地段提示"},{"id":"536","name":"发码特殊信号机解锁提示"},{"id":"537","name":"降级工作状态下屏幕显示器提示进行路票和绿证解锁确认"},{"id":"538","name":"距离显示为“---”"},{"id":"539","name":"提示反向运行"},{"id":"540","name":"屏幕显示器显示“隔离”字样"},{"id":"541","name":"平调控制"},{"id":"542","name":"平调距离报警"},{"id":"543","name":"平调时间报警"},{"id":"544","name":"HXD类型机车"},{"id":"545","name":"动车组有效"},{"id":"546","name":"电力机车"},{"id":"547","name":"通常模式"},{"id":"548","name":"无防冒模式"},{"id":"549","name":"非本务模式"},{"id":"550","name":"目视模式"},{"id":"551","name":"调车模式"},{"id":"552","name":"出入段模式"},{"id":"553","name":"降级模式"},{"id":"554","name":"允许输入救援控制信息"},{"id":"555","name":"允许临时反向行车"},{"id":"556","name":"允许修正车次"},{"id":"557","name":"允输入停车限制信息"},{"id":"558","name":"允许输入运用信息"},{"id":"559","name":"允许输入揭示"},{"id":"560","name":"允许当前揭示查询"},{"id":"561","name":"允许输入调车限速"},{"id":"562","name":"允许输入出入段限速"},{"id":"563","name":"允许显示侧线信息，但不允许人工输入侧线"},{"id":"564","name":"允许输入本分区侧线"},{"id":"565","name":"允许输入下分区侧线"},{"id":"566","name":"允许输入支线"},{"id":"567","name":"预开车对标"},{"id":"568","name":"允许检修输入"},{"id":"569","name":"正在更新”"},{"id":"570","name":"允许文件更新"},{"id":"571","name":"允许常用试验"},{"id":"572","name":"允许紧急试验"},{"id":"573","name":"二端安装警惕按钮"},{"id":"574","name":"一端安装警惕按钮"},{"id":"575","name":"原边电流有效"},{"id":"576","name":"只允许本分区输入支线号"},{"id":"577","name":"允许调度命令发车至前方进站"},{"id":"578","name":"允许调度命令发车至次一信号机"},{"id":"579","name":"允许办理特殊前行"},{"id":"580","name":"允许进入万吨控制"},{"id":"581","name":"允许自动弹出绿灯确认窗口"},{"id":"582","name":"允许确认当前地面信号"},{"id":"583","name":"允许办理特定引导"},{"id":"584","name":"允许办理有计划路票"},{"id":"585","name":"允许输入路票电话记录号"},{"id":"586","name":"允许办理有计划绿色许可证"},{"id":"587","name":"允许输入有计划绿色许可证凭证号"},{"id":"588","name":"允许输入临时路票"},{"id":"589","name":"允许输入临时绿色许可证"},{"id":"590","name":"零位"},{"id":"591","name":"向前"},{"id":"592","name":"向后"},{"id":"593","name":"牵引"},{"id":"594","name":"制动"},{"id":"595","name":"I端警惕"},{"id":"596","name":"II端警惕"},{"id":"597","name":"隔离位"},{"id":"598","name":"车档"},{"id":"599","name":"ATP控车"}]},{"code":"051","dict":[{"id":" ","name":"空"},{"id":"and","name":"and"},{"id":"or","name":"or"}]},{"code":"052","dict":[{"id":"0","name":"DMI工作模"},{"id":"1","name":"Ⅰ系A模"},{"id":"2","name":"Ⅰ系B模"},{"id":"3","name":"Ⅰ系A/B模"},{"id":"4","name":"Ⅱ系A模"},{"id":"8","name":"Ⅱ系B模"},{"id":"12","name":"Ⅱ系A/B模"},{"id":"15","name":"四模"}]},{"code":"053","dict":[{"id":"==","name":"="},{"id":"!=","name":"！="},{"id":"<=","name":"≤"},{"id":"<","name":"＜"},{"id":">=","name":"≥"},{"id":">","name":"＞"}]},{"code":"054","dict":[{"id":"0","name":"非直达-无径路-单机-货车"},{"id":"1","name":"非直达-无径路-单机-客车"},{"id":"2","name":"非直达-无径路-非单机-货车"},{"id":"3","name":"非直达-无径路-非单机-客车"},{"id":"4","name":"非直达-货车支线-单机-货车"},{"id":"5","name":"非直达-货车支线-单机-客车"},{"id":"6","name":"非直达-货车支线-非单机-货车"},{"id":"7","name":"非直达-货车支线-非单机-客车"},{"id":"8","name":"非直达-固定径路-单机-货车"},{"id":"9","name":"非直达-固定径路-单机-客车"},{"id":"10","name":"非直达-固定径路-非单机-货车"},{"id":"11","name":"非直达-固定径路-非单机-客车"},{"id":"12","name":"非直达-禁用-单机-货车"},{"id":"13","name":"非直达-禁用-单机-客车"},{"id":"14","name":"非直达-禁用-非单机-货车"},{"id":"15","name":"非直达-禁用-非单机-客车"},{"id":"16","name":"直达-无径路-单机-货车"},{"id":"17","name":"直达-无径路-单机-客车"},{"id":"18","name":"直达-无径路-非单机-货车"},{"id":"19","name":"直达-无径路-非单机-客车"},{"id":"20","name":"直达-货车支线-单机-货车"},{"id":"21","name":"直达-货车支线-单机-客车"},{"id":"22","name":"直达-货车支线-非单机-货车"},{"id":"23","name":"直达-货车支线-非单机-客车"},{"id":"24","name":"直达-固定径路-单机-货车"},{"id":"25","name":"直达-固定径路-单机-客车"},{"id":"26","name":"直达-固定径路-非单机-货车"},{"id":"27","name":"直达-固定径路-非单机-客车"},{"id":"28","name":"直达-禁用-单机-货车"},{"id":"29","name":"直达-禁用-单机-客车"},{"id":"30","name":"直达-禁用-非单机-货车"},{"id":"31","name":"直达-禁用-非单机-客车"}]},{"code":"055","dict":[{"id":"1","name":"有报警"},{"id":"0","name":"无报警"}]},{"code":"056","dict":[{"id":"True","name":"左边"},{"id":"False","name":"右边"}]},{"code":"057","dict":[{"id":"1","name":"上电"},{"id":"0","name":"断电"},{"id":"-1","name":"保持不变"}]},{"code":"058","dict":[{"id":"0","name":"不检查"},{"id":"1","name":"检查"}]},{"code":"059","dict":[{"id":"1","name":"启动"},{"id":"0","name":"停止"}]},{"code":"060","dict":[{"id":"1","name":"只发I系"},{"id":"2","name":"只发II系"},{"id":"3","name":"两系同时"},{"id":"0","name":"停止发送"}]},{"code":"061","dict":[{"id":"1","name":"有计划路票"},{"id":"2","name":"临时路票"},{"id":"3","name":"有计划绿证"},{"id":"4","name":"临时绿证"},{"id":"5","name":"货车特殊前行"},{"id":"6","name":"调度命令发车至次一信号机"},{"id":"7","name":"调度命令发车至前方站"}]},{"code":"062","dict":[{"id":"0x01","name":"警惕"},{"id":"0x02","name":"解锁"},{"id":"0x03","name":"缓解"},{"id":"0x04","name":"操作权确认"},{"id":"0x06","name":"定标"},{"id":"0x07","name":"开车"},{"id":"0x08","name":"距离校正"},{"id":"0x0a","name":"巡检"},{"id":"0x0b","name":"查询"},{"id":"0x0c","name":"转储"},{"id":"0x15","name":"里程计试验"},{"id":"0x19","name":"确认键"},{"id":"0x1d","name":"特定引导"},{"id":"0x1e","name":"L/LU灯确认"},{"id":"0x31","name":"大解锁"}]},{"code":"063","dict":[{"id":"0x01","name":"区段"},{"id":"0x02","name":"应答器区段"}]},{"code":"064","dict":[{"id":"0x00","name":"普通机车常用试验"},{"id":"0x01","name":"CRH一级常用制动试验"},{"id":"0x04","name":"CRH四级常用制动试验"},{"id":"0x07","name":"CRH七级常用制动试验"},{"id":"0x10","name":"HXD机车减压80"},{"id":"0x11","name":"HXD机车减压120/130"},{"id":"0x20","name":"常用试验取消"},{"id":"0x30","name":"紧急制动试验"},{"id":"0x31","name":"紧急试验取消"}]},{"code":"065","dict":[{"id":"0x11","name":"I系"},{"id":"0x22","name":"II系"},{"id":"0x66","name":"双系"}]},{"code":"066","dict":[{"id":"0x01","name":"试验开始"},{"id":"0x02","name":"试验暂停"},{"id":"0x03","name":"试验退出"}]},{"code":"067","dict":[{"id":"1","name":"是"},{"id":"0","name":"否"}]},{"code":"068","dict":[{"id":"0","name":"无报警"},{"id":"1","name":"报警"},{"id":"2","name":"卸载"},{"id":"3","name":"常用"},{"id":"4","name":"紧急"}]},{"code":"069","dict":[{"id":"0","name":"不对标"},{"id":"1","name":"信号机"},{"id":"2","name":"里程"}]},{"code":"072","dict":[{"id":"8","name":"控制参数"},{"id":"9","name":"车载数据文件"},{"id":"10","name":"运行组织文件"},{"id":"24","name":"揭示数据"}]},{"code":"073","dict":[{"id":"1","name":"宕机"},{"id":"0","name":"非宕机"}]},{"code":"074","dict":[{"id":"0","name":"不允许宕机"},{"id":"1","name":"允许宕机"}]},{"code":"075","dict":[{"id":"1","name":"有输出"},{"id":"0","name":"无输出"}]},{"code":"101","dict":[{"id":"138","name":"DF11"},{"id":"239","name":"HXD3C"},{"id":"242","name":"HXD3D"},{"id":"111","name":"DF8"},{"id":"142","name":"DF8B"},{"id":"141","name":"DF4D"},{"id":"110","name":"DF7"},{"id":"151","name":"NJ2"},{"id":"160","name":"HXN3"},{"id":"162","name":"HXN3B"},{"id":"206","name":"SS3"},{"id":"211","name":"SS7"},{"id":"301","name":"CRH1"},{"id":"306","name":"CRH380A"},{"id":"310","name":"CRH6A"},{"id":"240","name":"HXD1D"}]},{"code":"201","dict":[{"id":"1","name":"输出"},{"id":"0","name":"无输出"}]},{"code":"202","dict":[{"id":"2","name":"输出"},{"id":"0","name":"无输出"}]},{"code":"203","dict":[{"id":"4","name":"输出"},{"id":"0","name":"无输出"}]},{"code":"204","dict":[{"id":"8","name":"输出"},{"id":"0","name":"无输出"}]},{"code":"205","dict":[{"id":"16","name":"输出"},{"id":"0","name":"无输出"}]},{"code":"206","dict":[{"id":"32","name":"输出"},{"id":"0","name":"无输出"}]},{"code":"BTM","dict":[{"id":"8C80197FF67B4E6EBBA574CD1F9209B3","name":"昆玉河线昆明南-玉溪下行应答器报文.xls"},{"id":"A66BF86D4AD045CD881B3ED315571012","name":"昆玉河线昆阳-昆明南上行应答器报文20171130.xls"},{"id":"F4B4B523E92F4331B157B3DE597A1121","name":"昆玉河线玉溪-昆明南上行应答器报文.xls"},{"id":"FBF5338E60EC4A38AF4C79237FDACD9F","name":"会昌北快速-龙岩_D9605_201511221.xls"},{"id":"7BBE2AA011FC4A3BB7B1C656A776CA8B","name":"赣县-瑞金_D9603_201511241.xls"},{"id":"BF221A24A5BD42489380DF6A74EA9926","name":"赣县-龙岩D9605_201511211.xls"},{"id":"2D4D23AE2EBC48CF8D4F28CC8B1B126F","name":"会昌北快速-上杭古田_D9605_201511231.xls"}]},{"code":"JSSJ","dict":[{"id":"0102420191118095201001001","name":"LKJTem.cq"},{"id":"0102420191223133759001001","name":"LKJTem.cq"}]},{"code":"ICSJ","dict":[{"id":"0100820191115085000001120","name":"ZZ_SW_调车按固定限速.tj"},{"id":"0100820191206110630001120","name":"ZZ_SW_201912061106.tj"},{"id":"0100820191204093001001120","name":"ZZ_SW_调车不按固定限速.tj"},{"id":"0100820191218143144001120","name":"ZZ_SW_201912181431.tj"},{"id":"0100820191205152014001120","name":"ZZ_SW_201912051520.tj"}]},{"code":"SJWJ","dict":[{"id":"0100820191115085000001120","name":"ZZ_SW_调车按固定限速.tj"},{"id":"0100820191206110630001120","name":"ZZ_SW_201912061106.tj"},{"id":"0100820191204093001001120","name":"ZZ_SW_调车不按固定限速.tj"},{"id":"0100820191218143144001120","name":"ZZ_SW_201912181431.tj"},{"id":"0100820191205152014001120","name":"ZZ_SW_201912051520.tj"}]}];
	}
	//条件控件的的关系
	conditionSelectList = getSelectListByCode('051');
	//获取绘图初始数据信息
	getInitDrawData(id);
	return;
	$.ajax({
		async:false,
		cache:false,
		type:'POST',
		dataType:'json',
		url:'../../../basecase/getAllDictionary',
		error : function(data) {
			danger(data.errorInfo);
		},
		success : function(data) {
			console.log(data);
			exportRaw('text.txt',JSON.stringify(data.content));
			if(data.flag == 0){
				//获取到下拉框的所有数据
				//条件控件的的关系
				conditionSelectList = getSelectListByCode('051');
				//获取绘图初始数据信息
				getInitDrawData(id);
			}else{
				danger(data.errorInfo);
			}
		}
	});
}

// leve:1(控件),2(分支、循环),3(条件轴)
// type:'015'(分支),'016'(循环),'011'(条件轴)，'001-010'(控件)
function canvasDropFun(ev) {
	var x = ev.offsetX;
	var y = ev.offsetY;
	ev.preventDefault();
	var code = ev.dataTransfer.getData('code');
	
	// 当前拖拽控件赋值，包括id
	var dragData = getDragData(code);
	
	// 根据鼠标拖拽放置的点坐标，更新caseElements数据
	updateCaseElements(dragData, x, y);
	
	//设置当前拖拽的控件选中状态
	selectTargetId = dragData.id;
	setSelectedById(selectTargetId);
	
	//绘制画布内容
	context.clearRect(0, 0, mycanvas.width, mycanvas.height);
	for (var i = 0; i < caseElements.length; i++) {
		setDrawSize(caseElements[i]);
	}
	resetCanvasHeight();
	// 绘制图形
	drawProcessChart(caseElements);
	canvasClick();
	console.log(caseElements);
}
//鼠标点击
function canvasDownFun(x,y) {
	//设置中间区域为焦点
	$("#editContentCenter").focus();
	$('#editContentCenter').attr('tabIndex',-1);
	getClickObj(x, y);
	context.clearRect(0, 0, mycanvas.width, mycanvas.height);
	for (var i = 0; i < caseElements.length; i++) {
		setDrawSize(caseElements[i]);
	}
	resetCanvasHeight();
	drawProcessChart(caseElements);
	canvasClick();
}

// leve:1(控件),2(分支、循环),3(条件轴)
// type:'015'(分支),'016'(循环),'011'(条件轴)，'001-010'(控件)
// 获取当前拖拽元素的数据
function getDragData(code) {
	var data = null;
	var elementDataCopy = [].concat(JSON.parse(JSON.stringify(elementData)));
	for (var i = 0; i < elementDataCopy.length; i++) {
		if (elementDataCopy[i].code == code) {
			data = elementDataCopy[i];
			setInitShow(elementDataCopy[i]);
			break;
		}
	}
	if (data) {// 对拖拽元素添加id
		data.id = UUIDList.shift();
		for (var j = 0; j < data.attributes.length; j++) {
			data.attributes[j].id = UUIDList.shift();
		}
		data.conditionList = [];
		if (data.leve == '1') {
			data.width = rectWidth;
			data.height = rectHeight;
		} else if (data.leve == '2') {
			data.width = banchLoopWidth;
			data.height = banchLoopHeight;
		} else if (data.leve == '3') {
			data.width = 80;
			data.height = 30;
		}
	}
	return data;
}
// leve:1(控件),2(分支、循环),3(条件轴)
// type:'015'(分支),'016'(循环),'011'(条件轴)，'001-010'(控件)
// 根据鼠标拖拽放置的点坐标，更新caseElements数据
function updateCaseElements(dragData, x, y) {
	// 判断当前坐标点是否有元素,更新caseElements数据
	getLocationTargetObj(dragData, x, y);
}
// leve:1(控件),2(分支、循环),3(条件轴)
// type:'015'(分支),'016'(循环),'011'(条件轴)，'001-010'(控件)
// 获取当前坐标在哪个对象上面
// 1：当前拖拽的对象，2：当前判断的绘图中的对象，3：鼠标的x，4：鼠标的y，5：当前判断的绘图中对象的父节点，6：当前判断绘制对象的在父节点中的索引
function getLocationTargetObj(dragData, x, y) {
	if(caseElements.length<=0){
		caseElements.push(dragData);
		return;
	}
	for (var i = 0; i < caseElements.length; i++) {
		var obj = checkPostionTargetObj(dragData, caseElements[i], x, y, null, null, i,0);
		if(obj!=null){
			break;
		}
	}
}
//递归检查当前拖拽鼠标点下控件,type:0(拖拽),1(判断是否可以添加)
function checkPostionTargetObj(dragData, obj, x, y, parentObjArray, parentObj,
		index,type) {
	var coverObj = null;
	if (obj.leve == '1') {// 小矩形
		if(dragData.type == '009'){//条件控件
			return;
		}
		if (parentObj) {
			if (x > (obj.x - betweenTool)
					&& x < (obj.x + obj.width + betweenTool)) {
				if (y > obj.y - betweenTool && y < obj.y) {// 矩形的上方，
					if (parentObj) {
						coverObj = obj;
						if(type == 0){
							addMoreBaseCase(parentObjArray,index,[dragData]);
						}
					}
				} else if (y > obj.y && y < (obj.y + obj.height + betweenTool)) {// 矩形内部或者矩形下方
					coverObj = obj;
					if(type == 0){
						addMoreBaseCase(parentObjArray,index+1,[dragData]);
					}
				}
			}
		} else {
			if (x > (obj.x - betweenTool)
					&& x < (obj.x + obj.width + betweenTool)) {
				if (y > obj.y - betweenTool && y < obj.y) {// 矩形的上方，
					coverObj = caseElements[index];
					if(type == 0){
						addMoreBaseCase(caseElements,index,[dragData]);
					}
				} else if (y > obj.y && y < (obj.y + obj.height + betweenTool)) {// 矩形内部或者矩形下方
					coverObj = caseElements[index];
					if(type == 0){
						addMoreBaseCase(caseElements,index+1,[dragData]);
					}
				}else {
					if(index == (caseElements.length - 1) && y>caseElements[index].y +caseElements[index].height){
						coverObj = obj;
						if(type == 0){
							addMoreBaseCase(caseElements,index+1,[dragData]);
						}
					}
				}
			}
		}
	} else {
		if (obj.type == '015') {// 分支
			if ((x>(obj.x - betweenTool) && x<(x+obj.width+betweenTool)&& y>(obj.y - betweenTool)&& y<obj.y)
					|| (x>(obj.x - betweenTool)&&x<obj.x&&y>(obj.y - betweenTool)&&y<(obj.y+obj.height+betweenTool))
					|| (x>(obj.x+obj.width)&&x<(obj.x+obj.width+betweenTool)&&y>(obj.y - betweenTool)&&y<(obj.y+obj.height+betweenTool))){
				if(dragData.type == '009'){//条件控件
					return;
				}
				if(parentObj){
					if(type == 0){
						addMoreBaseCase(parentObjArray,index,[dragData]);
					}
					coverObj = parentObj;
				}else{
					if(type == 0){
						addMoreBaseCase(caseElements,index,[dragData]);
					}
					coverObj = caseElements[index];
				}
			}else if ((x>(obj.x - betweenTool) && x<(x+obj.width+betweenTool)&& y>(obj.y + obj.height)&& y<(obj.y + obj.height+betweenTool))){
				if(dragData.type == '009'){//条件控件
					return;
				}
				if(parentObj){
					if(type == 0){
						addMoreBaseCase(parentObjArray,index+1,[dragData]);
					}
					coverObj = parentObj;
				}else{
					if(type == 0){
						addMoreBaseCase(caseElements,index+1,[dragData]);
					}
					coverObj = caseElements[index];
				}
			}else{
				if(x>obj.x&& x<obj.x + obj.width && y>obj.y && y<obj.y + banchLoopTitleHeight){//分支头
					if(dragData.type == '009'){//条件控件
						//只有分支容器控件和循环容器控件才可以添加条件控件
						if(type == 0){
							if(!obj.conditionList){
								obj.conditionList = [];
							}
							//第二个开始后面的“和上个条件关系”不能为空
							if(obj.conditionList.length<=0){
								dragData.attributes[0].self_conditionType = 0;
								dragData.attributes[0].value = conditionSelectList[0].id;
								dragData.attributes[0].displayValue = conditionSelectList[0].name;
							}else if(obj.conditionList.length>=1){
								dragData.attributes[0].self_conditionType = 1;
								dragData.attributes[0].value = conditionSelectList[1].id;
								dragData.attributes[0].displayValue = conditionSelectList[1].name;
							}
							console.log(dragData);
							obj.conditionList.push(dragData);
						}
						coverObj = obj;
					}else{
						if(parentObj){
							if(type == 0){
								addMoreBaseCase(parentObjArray,index+1,[dragData]);
								coverObj = parentObj;
							}
						}else{
							if(type == 0){
								addMoreBaseCase(caseElements,index+1,[dragData]);
								coverObj = caseElements[index];
							}
						}
					}
				}else if(x>obj.x && x<obj.x + obj.leftWidth && y>obj.y+banchLoopTitleHeight && y<obj.y + obj.height){//左侧
					if (obj.leftChildrens.length <= 0) {
						if(dragData.type == '009'){//条件控件
							return;
						}
						if(type == 0){
							addMoreBaseCase(obj.leftChildrens,index+1,[dragData]);
						}
						coverObj = obj;
					} else {
						for (var i = 0; i < obj.leftChildrens.length; i++) {
							coverObj = checkPostionTargetObj(dragData,
									obj.leftChildrens[i], x, y, obj.leftChildrens,
									obj, i,type);
							if (coverObj != null) {
								break;
							}
						}
						
						if(coverObj == null){
							if(type == 0){
								coverObj = obj;
								obj.leftChildrens.push(dragData);
							}
						}
					}
				}else if(x>obj.x + obj.leftWidth && x<obj.x + obj.width && y>obj.y+banchLoopTitleHeight && y<obj.y + obj.height){//左侧
					if (obj.rightChildrens.length <= 0) {
						if(dragData.type == '009'){//条件控件
							return;
						}
						if(type == 0){
							addMoreBaseCase(obj.rightChildrens,index+1,[dragData]);
						}
						coverObj = obj;
					} else {
						for (var i = 0; i < obj.rightChildrens.length; i++) {
							coverObj = checkPostionTargetObj(dragData,
									obj.rightChildrens[i], x, y,
									obj.rightChildrens, obj, i,type);
							if (coverObj != null) {
								break;
							}
						}
						
						if(coverObj == null){
							if(type == 0){
								obj.rightChildrens.push(dragData);
							}
							coverObj = obj;
						}
					}
				}else {
					if(parentObj == null){
						if(dragData.type == '009'){//条件控件
							return;
						}
						if(index == (caseElements.length - 1) && y>caseElements[index].y +caseElements[index].height){
							if(type == 0){
								addMoreBaseCase(caseElements,index+1,[dragData]);
							}
							coverObj = obj;
						}
					}
				}
			}
		} else if (obj.type == '016') {// 循环
			if (x > obj.x&& x < (obj.x + obj.width) && y>obj.y && y<(obj.y+obj.height)) {
				if (y > obj.y && y < (obj.y + banchLoopTitleHeight)) {
					if(dragData.type == '009'){//条件控件
						//只有分支容器控件和循环容器控件才可以添加条件控件
						if(obj.code !='016001'){
							if(type == 0){
								if(!obj.conditionList){
									obj.conditionList = [];
								}
								//第二个开始后面的“和上个条件关系”不能为空
								if(obj.conditionList.length<=0){
									dragData.attributes[0].self_conditionType = 0;
									dragData.attributes[0].value = conditionSelectList[0].id;
									dragData.attributes[0].displayValue = conditionSelectList[0].name;
								}else if(obj.conditionList.length>=1){
									dragData.attributes[0].self_conditionType = 1;
									dragData.attributes[0].value = conditionSelectList[1].id;
									dragData.attributes[0].displayValue = conditionSelectList[1].name;
								}
								console.log(dragData);
								obj.conditionList.push(dragData);
							}
							coverObj = obj;
						}
					}else{
						if(parentObj){
							if(type == 0){
								addMoreBaseCase(parentObjArray,index+1,[dragData]);
							}
							coverObj = parentObj;
						}else{
							if(type == 0){
								addMoreBaseCase(caseElements,index+1,[dragData]);
							}
							coverObj = caseElements[index];
						}
					}
				} else if (y > (obj.y + banchLoopTitleHeight)
						&& y < (obj.y + obj.height)) {
					if (obj.childrens.length <= 0) {
						if(dragData.type == '009'){//条件控件
							return;
						}
						if(type == 0){
							obj.childrens.push(dragData);
						}
						coverObj = obj;
					} else {
						for (var i = 0; i < obj.childrens.length; i++) {
							coverObj = checkPostionTargetObj(dragData,
									obj.childrens[i], x, y, obj.childrens, obj,
									i,type);
							if (coverObj != null) {
								break;
							}
						}
						
						if(coverObj == null){
							if(type == 0){
								obj.childrens.push(dragData);
							}
							coverObj = obj;
						}
					}
				}
			}else if ((x>(obj.x - betweenTool) && x<(x+obj.width+betweenTool)&& y>(obj.y + obj.height)&& y<(obj.y + obj.height+betweenTool))){
				if(dragData.type == '009'){//条件控件
					return;
				}
				if(parentObj){
					if(type == 0){
						addMoreBaseCase(parentObjArray,index+1,[dragData]);
					}
					coverObj = parentObj;
				}else{
					if(type == 0){
						addMoreBaseCase(caseElements,index+1,[dragData]);
					}
					coverObj = caseElements[index];
				}
			}else if ((x>(obj.x - betweenTool) && x<(x+obj.width+betweenTool)&& y>(obj.y - betweenTool)&& y<obj.y)
					|| (x>(obj.x - betweenTool)&&x<obj.x&&y>(obj.y - betweenTool)&&y<(obj.y+obj.height+betweenTool))
					|| (x>(obj.x+obj.width)&&x<(obj.x+obj.width+betweenTool)&&y>(obj.y - betweenTool)&&y<(obj.y+obj.height+betweenTool))){
				if(dragData.type == '009'){//条件控件
					return;
				}
				if(parentObj){
					if(type == 0){
						addMoreBaseCase(parentObjArray,index,[dragData]);
					}
					coverObj = parentObj;
				}else{
					if(type == 0){
						addMoreBaseCase(caseElements,index,[dragData]);
					}
					coverObj = caseElements[index];
				}
			}else {
				if(parentObj == null){
					if(dragData.type == '009'){//条件控件
						return;
					}
					if(index == (caseElements.length - 1) && y>caseElements[index].y +caseElements[index].height){
						if(type == 0){
							addMoreBaseCase(caseElements,index+1,[dragData]);
						}
						coverObj = obj;
					}
				}
			}
		}
	}
	return coverObj;
}

//控件数组中添加复制的控件
function addMoreBaseCase(targetArray,index,moreArray){
	var count = moreArray.length;
	var times = 0;
	while(count>0){
		targetArray.splice(index+times,0,moreArray[times]);
		count--;
		times++;
	}
}

// 设置caseElements数据中的空间大小和位置
function setDrawSize(obj) {
	//设置控件的大小
	setCaseSize(obj);
	//设置控件的位置
	setCaseArray(caseElements);
}
//设置控件的大小
function setCaseSize(obj) {
	var size = new Object;
	var heightCount = 0;
	var widthCount = 0;
	if (obj.leve == '1') {
		heightCount = heightCount + rectHeight;
		widthCount = rectWidth;
	} else if (obj.leve == '2') {
		heightCount = heightCount + banchLoopTitleHeight;
		var widthLeft = 0;
		var widthRight = 0;
		if (obj.type == '015') {
			var leftHeight = betweenTool;
			var rightHeight = betweenTool;
			for (var p = 0; p < obj.leftChildrens.length; p++) {
				var returnSize = setCaseSize(obj.leftChildrens[p]);
				leftHeight = leftHeight + returnSize.height;
				if (!obj.leftChildrens[p].width) {
					obj.leftChildrens[p].width = getWidth(obj.leftChildrens[p]);
				}
				if (widthLeft < returnSize.width) {
					widthLeft = returnSize.width;
				}
			}
			for (var q = 0; q < obj.rightChildrens.length; q++) {
				var returnSize = setCaseSize(obj.rightChildrens[q]);
				rightHeight = rightHeight + returnSize.height;
				if (!obj.rightChildrens[q].width) {
					obj.rightChildrens[q].width = getWidth(obj.rightChildrens[q]);
				}
				if (widthRight < returnSize.width) {
					widthRight = returnSize.width;
				}
			}
			if (leftHeight >= rightHeight) {
				heightCount = heightCount + leftHeight;
			} else {
				heightCount = heightCount + rightHeight;
			}
			if (widthLeft < banchLoopWidth) {
				widthLeft = banchLoopWidth;
			}
			if (widthRight < banchLoopWidth) {
				widthRight = banchLoopWidth;
			}
			widthCount = widthLeft + widthRight;
			obj.leftWidth = widthLeft;
			obj.rightWidth = widthRight;
		} else if (obj.type == '016') {
			heightCount = heightCount + betweenTool;
			for (var i = 0; i < obj.childrens.length; i++) {
				var returnSize = setCaseSize(obj.childrens[i]);
				heightCount = heightCount + returnSize.height;
				if (!obj.childrens[i].width) {
					obj.childrens[i].width = getWidth(obj.childrens[i]);
				}
				if (widthCount < returnSize.width) {
					widthCount = returnSize.width;
				}
			}
			if (widthCount < banchLoopWidth) {
				widthCount = banchLoopWidth;
			}
		}
	}
	obj.height = heightCount;
	obj.width = widthCount;
	size.height = heightCount + betweenTool;
	size.width = widthCount + betweenTool + betweenTool;
	return size;
}
//设置控件的位置
function setCaseArray(objArray) {
	var MARGIN = betweenTool;
	var x = betweenTool;
	var y = betweenTool;
	for (var i = 0; i < objArray.length; i++) {
		var size = setCasePostion(objArray[i], x, y);
		y = y + size.cy + MARGIN;
	}
}
//设置控件的位置
function setCasePostion(obj, X, Y) {
	var MARGIN = betweenTool;
	var returnSize = new Object;
	returnSize.cx = 0;
	returnSize.cy = 0;
	obj.x = X;
	obj.y = Y;
	if (obj.leve == '1') {
		returnSize.cx = rectWidth;
		returnSize.cy = rectHeight;
	} else if (obj.leve == '2') {
		if (obj.type == '015') {
			var xMaxLeft = 0;
			var yLeft = Y + banchLoopTitleHeight + MARGIN;
			if (obj.leftChildrens.length <= 0) {
				xMaxLeft = banchLoopWidth;
			}
			for (var i = 0; i < obj.leftChildrens.length; i++) {
				var size = setCasePostion(obj.leftChildrens[i], X + MARGIN,
						yLeft);
				yLeft = yLeft + size.cy + MARGIN;
				if (xMaxLeft < MARGIN + size.cx + MARGIN)
					xMaxLeft = MARGIN + size.cx + MARGIN;
			}
			var xMaxRight = 0;
			if (obj.rightChildrens.length <= 0) {
				xMaxRight = banchLoopWidth;
			}
			var yRight = Y + banchLoopTitleHeight + MARGIN;
			for (var i = 0; i < obj.rightChildrens.length; i++) {
				var size = setCasePostion(obj.rightChildrens[i], X + xMaxLeft
						+ MARGIN, yRight);
				yRight = yRight + size.cy + MARGIN;
				if (xMaxRight < MARGIN + size.cx + MARGIN)
					xMaxRight = MARGIN + size.cx + MARGIN;
			}
			returnSize.cx = xMaxLeft + xMaxRight;
			returnSize.cy = (yLeft > yRight ? yLeft : yRight) - Y;
		} else if (obj.type == '016') {
			returnSize.cx = banchLoopWidth;
			returnSize.cy = banchLoopTitleHeight + MARGIN;
			var y = Y + banchLoopTitleHeight + MARGIN;
			for (var i = 0; i < obj.childrens.length; i++) {
				var size = setCasePostion(obj.childrens[i], X + MARGIN, y);
				y = y + size.cy + MARGIN;
				if (returnSize.cx < MARGIN + size.cx + MARGIN)
					returnSize.cx = MARGIN + size.cx + MARGIN;
			}
			returnSize.cy = y - Y;
		}
	}
	return returnSize;
}
// 获取空间的初始大小
function getWidth(obj) {
	var w = 0;
	if (obj.leve == '1') {// 小矩形控件
		w = rectWidth;
	} else {
		if (obj.type == '015') {// 分支
			w = banchLoopWidth * 2;
		} else if (obj.type == '016') {// 循环
			w = banchLoopWidth;
		}
	}
	return w;
}

// 数据对id进行赋值
function setListDataId(objArray) {
	for (var i = 0; i < objArray.length; i++) {
		updateDataId(objArray[i]);
	}
}
//递归对数据中的id进行赋值
function updateDataId(obj) {
	for (var i = 0; i < obj.attributes.length; i++) {
		obj.attributes[i].id = UUIDList.shift();
	}
	if(!obj.conditionList){
		obj.conditionList = [];
	}
	if (obj.leve == '1') {
		obj.id = UUIDList.shift();
	} else if (obj.leve == '2') {
		obj.id = UUIDList.shift();
		if (obj.type == '015') {
			for (var p = 0; p < obj.leftChildrens.length; p++) {
				obj.leftChildrens[p].id = UUIDList.shift();
				updateDataId(obj.leftChildrens[p]);
			}
			for (var q = 0; q < obj.rightChildrens.length; q++) {
				obj.rightChildrens[q].id = UUIDList.shift();
				updateDataId(obj.rightChildrens[p]);
			}
		} else if (obj.type == '016') {
			for (var m = 0; m < obj.childrens.length; m++) {
				obj.childrens[m].id = UUIDList.shift();
				updateDataId(obj.childrens[m]);
			}
		}
	}
	return;
}

// 获取当前点击坐标的对象
function getClickObj(x, y) {
	//重置所有元素为不选中状态
	resetSelected();
	//当前选中元素的id
	selectTargetId = '';
	selectTargetData = null;
	//鼠标点击后，把通过子元素寻找父元素的变量置空
	childToParentData = null;
	//递归获取当前选中的元素
	for (var i = 0; i < caseElements.length; i++) {
		selectTargetId = getTargetObj(caseElements[i], x, y, null, null, i, i);
		if (selectTargetId != '') {
			break;
		}
	}
}
//递归获取当前选中的元素
function getTargetObj(obj, x, y, parentObjArray, parentObj, index, parentIndex) {
	var selectIndex = '';
	if (obj.leve == '1') {// 小矩形
		if (parentObj) {
			if((x>(obj.x - betweenTool) && x<(x+obj.width+betweenTool)&& y>(obj.y - betweenTool)&& y<obj.y)
					|| (x>(obj.x - betweenTool)&&x<obj.x&&y>(obj.y - betweenTool)&&y<(obj.y+obj.height+betweenTool))
					|| (x>(obj.x+obj.width)&&x<(obj.x+obj.width+betweenTool)&&y>(obj.y - betweenTool)&&y<(obj.y+obj.height+betweenTool))
					|| (x>(obj.x - betweenTool) && x<(x+obj.width+betweenTool)&& y>(obj.y + obj.height)&& y<(obj.y + obj.height+betweenTool))){
				selectIndex = parentObj.id;
				parentObj.selected = true;
				selectTargetData = parentObj;
			}else if(x>obj.x && x<obj.x + obj.width&&y>obj.y&&y<obj.y+obj.height){
				selectIndex = obj.id;
				obj.selected = true;
				selectTargetData = obj;
			}
		} else {
			if((x>(obj.x - betweenTool) && x<(x+obj.width+betweenTool)&& y>(obj.y - betweenTool)&& y<obj.y)
					|| (x>(obj.x - betweenTool)&&x<obj.x&&y>(obj.y - betweenTool)&&y<(obj.y+obj.height+betweenTool))
					|| (x>(obj.x+obj.width)&&x<(obj.x+obj.width+betweenTool)&&y>(obj.y - betweenTool)&&y<(obj.y+obj.height+betweenTool))
					|| (x>(obj.x - betweenTool) && x<(x+obj.width+betweenTool)&& y>(obj.y + obj.height)&& y<(obj.y + obj.height+betweenTool))){
			
			}else if(x>obj.x && x<obj.x + obj.width&&y>obj.y&&y<obj.y+obj.height){
				selectIndex = caseElements[parentIndex].id;
				selectTargetData = caseElements[parentIndex];
				caseElements[parentIndex].selected = true;
			}
		}
	} else {
		if (obj.type == '015') {// 分支
			if ((x>(obj.x - betweenTool) && x<(x+obj.width+betweenTool)&& y>(obj.y - betweenTool)&& y<obj.y)
					|| (x>(obj.x - betweenTool)&&x<obj.x&&y>(obj.y - betweenTool)&&y<(obj.y+obj.height+betweenTool))
					|| (x>(obj.x+obj.width)&&x<(obj.x+obj.width+betweenTool)&&y>(obj.y - betweenTool)&&y<(obj.y+obj.height+betweenTool))
					|| (x>(obj.x - betweenTool) && x<(x+obj.width+betweenTool)&& y>(obj.y + obj.height)&& y<(obj.y + obj.height+betweenTool))){
				if (parentObj) {
					selectIndex = parentObj.id;
					parentObj.selected = true;
					selectTargetData = parentObj;
				}else{
					selectIndex = caseElements[parentIndex].id;
					selectTargetData = caseElements[parentIndex];
				}
			}else{
				if(x>obj.x&& x<obj.x + obj.width && y>obj.y && y<obj.y + banchLoopTitleHeight){//分支头
					var titleData = getTitleDataByPostion(obj,x,y);
					if(titleData == null){//此时选中了当前分支的头，即选中当前分支
						selectIndex = obj.id;
						obj.selected = true;
						selectTargetData = obj;
					}else{//选中条件控件
						selectIndex = titleData.id;
						selectTargetData = titleData;
						//当选中软件版本换装的条件控件时，弹出提示框显示软件版本
						if(titleData.code == "009008"){
							showSoftChangeList(titleData);
						}
					}
				}else if(x>obj.x && x<obj.x + obj.leftWidth && y>obj.y+banchLoopTitleHeight && y<obj.y + obj.height){//左侧
					if (obj.leftChildrens.length <= 0) {
						selectIndex = obj.id;
						obj.selected = true;
						selectTargetData = obj;
					} else {
						for (var i = 0; i < obj.leftChildrens.length; i++) {
							selectIndex = getTargetObj(obj.leftChildrens[i], x,
									y, obj.leftChildrens, obj, i, parentIndex);
							if (selectIndex != '') {
								break;
							}
						}
						if(selectIndex == ''){
							selectIndex = obj.id;
							obj.selected = true;
							selectTargetData = obj;
						}
					}
				}else if(x>obj.x + obj.leftWidth && x<obj.x + obj.width && y>obj.y+banchLoopTitleHeight && y<obj.y + obj.height){//左侧
					if (obj.rightChildrens.length <= 0) {
						selectIndex = obj.id;
						obj.selected = true;
						selectTargetData = obj;
					} else {
						for (var i = 0; i < obj.rightChildrens.length; i++) {
							selectIndex = getTargetObj(obj.rightChildrens[i],
									x, y, obj.rightChildrens, obj, i,
									parentIndex);
							if (selectIndex != '') {
								break;
							}
						}
						
						if(selectIndex == ''){
							selectIndex = obj.id;
							obj.selected = true;
							selectTargetData = obj;
						}
					}
				}
			}
		} else if (obj.type == '016') {// 循环
			if (x > obj.x&& x < (obj.x + obj.width) && y>obj.y && y<(obj.y+obj.height)) {
				if (y > obj.y && y < (obj.y + banchLoopTitleHeight)) {
					var titleData = getTitleDataByPostion(obj,x,y);
					if(titleData == null){//选中了当前循环
						selectIndex = obj.id;
						obj.selected = true;
						selectTargetData = obj;
					}else{//选中了当前循环的一个条件控件
						selectIndex = titleData.id;
						selectTargetData = titleData;
						//当选中软件版本换装的条件控件时，弹出提示框显示软件版本
						if(titleData.code == "009008"){
							showSoftChangeList(titleData);
						}
					}
				} else if (y > (obj.y + banchLoopTitleHeight)
						&& y < (obj.y + obj.height)) {
					if (obj.childrens.length <= 0) {
						selectIndex = obj.id;
						obj.selected = true;
						selectTargetData = obj;
					} else {
						for (var i = 0; i < obj.childrens.length; i++) {
							selectIndex = getTargetObj(obj.childrens[i], x, y,
									obj.childrens, obj, i, parentIndex);
							if (selectIndex != '') {
								break;
							}
						}
						
						if(selectIndex == ''){
							selectIndex = obj.id;
							obj.selected = true;
							selectTargetData = obj;
						}
					}
				}
			}else if ((x>(obj.x - betweenTool) && x<(x+obj.width+betweenTool)&& y>(obj.y - betweenTool)&& y<obj.y)
					|| (x>(obj.x - betweenTool)&&x<obj.x&&y>(obj.y - betweenTool)&&y<(obj.y+obj.height+betweenTool))
					|| (x>(obj.x+obj.width)&&x<(obj.x+obj.width+betweenTool)&&y>(obj.y - betweenTool)&&y<(obj.y+obj.height+betweenTool))
					|| (x>(obj.x - betweenTool) && x<(x+obj.width+betweenTool)&& y>(obj.y + obj.height)&& y<(obj.y + obj.height+betweenTool))){
				if (parentObj) {
					selectIndex = parentObj.id;
					parentObj.selected = true;
					selectTargetData = parentObj;
				}else{
					selectIndex = caseElements[parentIndex].id;
					selectTargetData = caseElements[parentIndex];
				}
			}
		}
	}
	return selectIndex;
}

//当选中软件版本换装的条件控件时，弹出提示框显示软件版本
function showSoftChangeList(data){
	console.log(selectTargetData);
	BootstrapDialog.show({
		title:"软件版本",
		draggable: true,
	    closable: false,
		message:$("<form class='form-inline' style='height:640px;'></form>")
		.load("softChangeBase.html"),
		buttons:[{
			icon : 'glyphicon glyphicon-check',
			label : '确定',
			cssClass : 'btn-primary',
			autospin : true,
			action : function(dialogRef) {
				saveSoftData(data);
				baseCaseEditeBool = true;// 释放复制粘贴快捷键
				dialogRef.close();
			}
		}, {
			label : '取消',
			action : function(dialogRef) {
				baseCaseEditeBool = true;// 释放复制粘贴快捷键
				dialogRef.close();
			}
		} ]
	});
}
//保存选中的软件版本
function saveSoftData(data){
	var changeObjs = [];
	// 根据软件id获取当前选中的文件id和换装位置信息并进行封装
	if (softIds.length > 0) {
		for (var i = 0; i < softIds.length; i++) {
			var changeObj = {};
			var softId = softIds[i];
			var fileObj = $("#" + softId + " select.signSelect");
			var fileId = "";
			if (fileObj.length > 0) {
				fileId = fileObj[0].value;
				changeObj.fileId = fileId;
				changeObj.id = softId;
			}
			if (fileId != "") {// 如果选择要更换的文件则查询当前选中的换装位置
				var softChangePosition = "";
				var selectdOption = $("#" + softId + " select.multipleSelect");
				if (selectdOption.length > 0) {
					for (var j = 0; j < selectdOption[0].length; j++) {
						if (selectdOption[0][j].selected) {
							softChangePosition += "1";
						} else {
							softChangePosition += "0";
						}
					}
				} else {
					softChangePosition = "0";
				}
				changeObj.position = softChangePosition;// 换装位置可为空
				changeObjs.push(changeObj);
			}
		}
		for(var i = 0;i<caseElements.length;i++){
			getSaveChangeLoop(caseElements[i],data,changeObjs);
		}
	}
}
function getSaveChangeLoop(obj,data,changeObjs){
	if(!obj.conditionList){
		return;
	}
	for(var j = 0;j<obj.conditionList.length;j++){
		if(obj.conditionList[j].id == data.id){
			obj.conditionList[j].self_softChangeList = changeObjs;
			obj.conditionList[j].attributes[1].value = JSON.stringify(changeObjs);
			break;
		}
	}
	if(obj.childrens.length){
		getSaveChangeLoop(obj.childrens,data,changeObjs);
	}
	if(obj.leftChildrens.length){
		getSaveChangeLoop(obj.leftChildrens,data,changeObjs);
	}
	if(obj.rightChildrens.length){
		getSaveChangeLoop(obj.rightChildrens,data,changeObjs);
	}
}
//根据控件容器头部的点击位置，判断是否有元素
function getTitleDataByPostion(obj,x,y){
	var data = null;
	var relativeX  = x - obj.x - conditionPostion.x;
	var relativeY = y - obj.y - conditionPostion.y;
	if(obj.conditionList == null){
		return null;
	}
	for(var i = 0;i<obj.conditionList.length;i++){
		if((relativeX>=i*23) && (relativeX<=20+23*i) &&relativeY>=0 && relativeY<=20){
			data = obj.conditionList[i];
			obj.conditionList[i].selected = true;
			break;
		}
	}
	return data;
}

// 重置caseElements中控件的selected为false，为不选中状态
function resetSelected() {
	for (var i = 0; i < caseElements.length; i++) {
		loopReSetSelected(caseElements[i]);
	}
}
//递归重置caseElements中控件的selected为false，为不选中状态
function loopReSetSelected(obj) {
	obj.selected = false;
	if (obj.leve == '1') {
	} else if (obj.leve == '2') {
		for(var i = 0;i<obj.conditionList.length;i++){
			obj.conditionList[i].selected = false;
		}
		if (obj.type == '015') {
			for (var i = 0; i < obj.leftChildrens.length; i++) {
				loopReSetSelected(obj.leftChildrens[i]);
			}
			for (var i = 0; i < obj.rightChildrens.length; i++) {
				loopReSetSelected(obj.rightChildrens[i]);
			}
		} else if (obj.type == '016') {
			for (var i = 0; i < obj.childrens.length; i++) {
				loopReSetSelected(obj.childrens[i]);
			}
		}
	}
}


//根据id设置选中控件
function setSelectedById(id) {
	//重置所有元素为不选中状态
	resetSelected();
	for (var i = 0; i < caseElements.length; i++) {
		loopSetSelectedById(caseElements[i],id);
	}
}
//根据id设置选中控件
function loopSetSelectedById(obj,id) {
	if (obj.leve == '1') {
		if(obj.id == id){
			obj.selected = true;
			selectTargetData = obj;
		}
	} else if (obj.leve == '2') {
		if(obj.id == id){
			obj.selected = true;
			selectTargetData = obj;
		}
		for(var i = 0;i<obj.conditionList.length;i++){
			if(obj.conditionList[i].id == id){
				obj.conditionList[i].selected = true;
				selectTargetData = obj.conditionList[i];
			}
		}
		if (obj.type == '015') {
			for (var i = 0; i < obj.leftChildrens.length; i++) {
				loopSetSelectedById(obj.leftChildrens[i],id);
			}
			for (var i = 0; i < obj.rightChildrens.length; i++) {
				loopSetSelectedById(obj.rightChildrens[i],id);
			}
		} else if (obj.type == '016') {
			for (var i = 0; i < obj.childrens.length; i++) {
				loopSetSelectedById(obj.childrens[i],id);
			}
		}
	}
}

// 根据id删除控件
function delectSelectTargetById(id,bool) {
	for (var i = 0; i < caseElements.length; i++) {
		getDelectTargetObj(caseElements[i], null, null, 0,bool);
	}
	selectTargetId = '';
}
//递归根据id删除控件
function getDelectTargetObj(obj, parentObjArray, parentObj, index,bool) {
	if (obj.leve == '1') {// 小矩形
		if (obj.id == selectTargetId) {
			if (parentObj) {
				delectArrayElementById(selectTargetId, parentObjArray,bool);
			} else {
				delectArrayElementById(selectTargetId, caseElements,bool);
			}
		}
	} else {
		if (obj.id == selectTargetId) {
			if (parentObj) {
				delectArrayElementById(selectTargetId, parentObjArray,bool);
			} else {
				delectArrayElementById(selectTargetId, caseElements,bool);
			}
			return;
		}
		if(obj.conditionList){
			for(var i = 0;i<obj.conditionList.length;i++){
				if(obj.conditionList[i].id == selectTargetId){
					delectArrayElementById(selectTargetId, obj.conditionList,bool);
					break;
				}
			}
		}
		if (obj.type == '015') {// 分支
			if (obj.leftChildrens.length <= 0) {

			} else {
				var bool = false;
				for (var i = 0; i < obj.leftChildrens.length; i++) {
					if (obj.leftChildrens[i].id == selectTargetId) {
						delectArrayElementById(selectTargetId,
								obj.leftChildrens,bool);
						bool = true;
						return;
					}
				}
				if (!bool) {
					for (var i = 0; i < obj.leftChildrens.length; i++) {
						getDelectTargetObj(obj.leftChildrens[i],
								obj.leftChildrens, obj, i,bool);
					}
				}
			}
			if (obj.rightChildrens.length <= 0) {
				
			} else {
				var bool = false;
				for (var i = 0; i < obj.rightChildrens.length; i++) {
					if (obj.rightChildrens[i].id == selectTargetId) {
						delectArrayElementById(selectTargetId,
								obj.rightChildrens,bool);
						bool = true;
						return;
					}
				}
				if (!bool) {
					for (var i = 0; i < obj.rightChildrens.length; i++) {
						getDelectTargetObj(obj.rightChildrens[i],
								obj.rightChildrens, obj, i,bool);
					}
				}
			}
		} else if (obj.type == '016') {// 循环
			if (obj.childrens.length <= 0) {

			} else {
				var bool = false;
				for (var i = 0; i < obj.childrens.length; i++) {
					if (obj.childrens[i].id == selectTargetId) {
						delectArrayElementById(selectTargetId, obj.childrens,bool);
						bool = true;
						return;
					}
				}
				if (!bool) {
					for (var i = 0; i < obj.childrens.length; i++) {
						getDelectTargetObj(obj.childrens[i], obj.childrens,
								obj, i,bool);
					}
				}
			}
		}
	}
}

// 从数组中删除对应id的元素
function delectArrayElementById(id, array,bool) {
	for (var i = 0; i < array.length; i++) {
		if (array[i].id == id) {
			array.splice(i, 1);
			if(bool){
				book('删除成功');
			}
			//当为009条件控件，第一个条件控件永远与上一个的关系为空，
			if(array[0] && array[0].type == "009"){
				array[0].attributes[0].self_conditionType = 0;
				array[0].attributes[0].value = conditionSelectList[0].id;
				array[0].attributes[0].displayValue = conditionSelectList[0].name;
			}
			break;
		}
	}
	selectTargetId = "";
}

//显示引导箭头
function showGuide(){
	var guide = tDrawCanvas.getDrawing('guide',{
		x:100,
		y:100
	});
	guide.draw();
}

// 绘制图形
function drawProcessChart(caseElements) {
	for (var i = 0; i < caseElements.length; i++) {
		if (caseElements[i].leve == '1') {// 控件
			var diagonal = tDrawCanvas.getDrawing('diagonal', {
				obj : {
					text : caseElements[i].name,
					x : caseElements[i].x,
					y : caseElements[i].y,
					color : '#7F7F7F',
					width : rectWidth,
					height : rectHeight,
					selected : caseElements[i].selected
				}
			});
			diagonal.draw();
		} else if (caseElements[i].leve == '2') {// 分支或者循环
			if (caseElements[i].type == '015') {// 分支
				var coditionCount = 0;
				if(caseElements[i].conditionList){
					coditionCount = caseElements[i].conditionList.length;
				}
				var branchCell = tDrawCanvas.getDrawing('branch', {
					x : caseElements[i].x,
					y : caseElements[i].y,
					width : caseElements[i].width,
					height : caseElements[i].height,
					bottomLeftWidth : caseElements[i].leftWidth,
					bottomRightWidth : caseElements[i].rightWidth,
					filledColor : titleBackGround,
					selected : caseElements[i].selected,
					conditionPostion:conditionPostion,
					conditionSpace:conditionSpace,
					conditionCount:coditionCount,
					conditionList:caseElements[i].conditionList
				});
				branchCell.draw();
				drawProcessChart(caseElements[i].leftChildrens);
				drawProcessChart(caseElements[i].rightChildrens);
			} else if (caseElements[i].type == '016') {// 循环
				var coditionCount = 0;
				if(caseElements[i].conditionList){
					coditionCount = caseElements[i].conditionList.length;
				}
				var loopCell = tDrawCanvas.getDrawing('loop', {
					x : caseElements[i].x,
					y : caseElements[i].y,
					width : caseElements[i].width,
					height : caseElements[i].height,
					isLabel : false,
					filledColor : titleBackGround,
					selected : caseElements[i].selected,
					conditionPostion:conditionPostion,
					conditionSpace:conditionSpace,
					conditionCount:coditionCount,
					conditionList:caseElements[i].conditionList
				});
				loopCell.draw();
				drawProcessChart(caseElements[i].childrens);
			}
		} else if (caseElements[i].leve == '3') {// 条件轴

		}
	}
}

//根据children的id获取父节点的数据childToParentData
function getParentDataByChild(childId,nameStr){
	for(var i = 0;i<caseElements.length;i++){
		childToParentData = getParentDataByChildLoop(caseElements[i],childId,nameStr);
		if(childToParentData!=null){
			break;
		}
	}
	context.clearRect(0, 0, mycanvas.width, mycanvas.height);
	for (var i = 0; i < caseElements.length; i++) {
		setDrawSize(caseElements[i]);
	}
	resetCanvasHeight();
	drawProcessChart(caseElements);
}
function getParentDataByChildLoop(obj,childId,nameStr){
	for(var i = 0;i<obj.attributes.length;i++){
		if(obj.attributes[i].id == childId){
			childToParentData = obj;
			obj.name =nameStr;
			break;
		}
	}
	if(childToParentData!=null){
		return;
	}
	if(obj.leve == '1'){
		
	}else{
		if(obj.type == '015'){
			for(var j=0;j<obj.leftChildrens.length;j++){
				getParentDataByChildLoop(obj.leftChildrens[j],childId,nameStr);
			}
			for(var j=0;j<obj.rightChildrens.length;j++){
				getParentDataByChildLoop(obj.rightChildrens[j],childId,nameStr);
			}
		}else if(obj.type == '016'){
			for(var j=0;j<obj.childrens.length;j++){
				getParentDataByChildLoop(obj.childrens[j],childId,nameStr);
			}
		}
	}
}

//控件的初始显示
function setInitShow(element){
	//当切换下拉框时，绘图显示变动
	if(element.code =='007001'){//按键输入
		element.name = '警惕';
	}
	if(element.code =='004004'){//平调信号
		element.name = '无码';
	}
	if(element.code =='004002'){//JTC信号
		element.name = 'L3码';
	}
	if(element.code =='010001'){//延时
		element.name = '延时5s';
	}
}

// 清空画布中的元素
function emptyElements(canvas) {
	resetMsg();
	var context = canvas.getContext('2d');
	// 清空画布内的所有元素
	context.clearRect(0, 0, canvase_width, canvas.height);
	// 直接清空原始数组即可
	caseElements.splice(0, caseElements.length);
}
// 条件轴和检查点的状态改变，根据id查询哪个条件轴或者检查点改变，type:0:条件轴，1：检查点
function updateByConditionState(type, id, state) {
	for (var i = 0; i < caseElements.length; i++) {
		if (type == 0) {// 条件轴
			if (id == caseElements[i].id) {
				caseElements[i].conditionState = state;
				break;
			}
		} else if (type == 1) {// 检查点
			for (var j = 0; j < caseElements[i].children.length; j++) {
				if (caseElements[i].children[j].id == id) {// 检查点状态
					caseElements[i].children[j].state = state;
					break;
				}
			}
		}
	}
}

// 点击画布方法p:点击画布坐标位置
function canvasClick() {
	var id = "";
	if(selectTargetData == null){
		return;
	}
	// 根据当前点击点的坐标获取点击的元素并设置选中
	var selection = [ selectTargetData ];
	for (var i = 0; i < selection.length; i++) {
		id = selection[i].id;// 点击的元素的id
	}
	if (selection.length > 0) {
		$("#caseNamee").empty();
		$("#elementContents").empty();
		$('#conDescription').empty(); // 清空控件说明描述内容
		$('#outParameter').empty();// 清空外部参数内容
		var selectElement = "";
		selectElement = selection[0];
		$('#controlDescription').css('display', 'block');
		$('#shuxingContent').css('display', 'block');
		$('#controlDescription').css('display', 'block');
		var description = selectElement.description;// 控件描述内容获取
		$("#caseNamee").append(
				"<div id='elementName'><span class='backblock' id=" + id
						+ ">" + selectElement.name + "-基本属性</span></div>");// 元素名称内容插入
		$("#conDescription").append(
				"<div id='controlDescription2'>" + description + "</div>");// 描述内容插入到标签
		showAttribute(selectElement, caseElements);
	}
	rightParameter();// 根据用户权限判断让右侧的参数修改和不可修改
}
function addDiyDom(treeId, treeNode) {
	var aObj = $("#" + treeNode.tId + "_ico");
	if ($("#diyBtn_"+treeNode.id).length>0||treeNode.isParent) return;
	var editStr = "";
	aObj.removeClass("button ico_docu");
	if(treeNode.type==0){//人工编辑
		editStr +="<img src='../../images/tree/bjyl_b.png' style='vertical-align: text-bottom;' alt=''/>"; 
	}else if(treeNode.type==1){//手工录制
		editStr +="<img src='../../images/tree/luzhi_b.png' style='vertical-align: text-bottom;' alt=''/>"; 
	}
	aObj.append(editStr);	
};
// 查询基本用例树信息并注册点击事件在画布上绘制图形信息
function showBaseCaseTree(canvas, elementTypes) {
	var setting = {
		view : {
			dblClickExpand : true,// 双击节点时，是否自动展开父节点的标识
			showLine : true,// 是否显示节点之间的连线
			addDiyDom: addDiyDom,
			fontCss : {
				'color' : 'black',
				'font-weight' : 'bold'
			},// 字体样式函数
			selectedMulti : false
		// 设置是否允许同时选中多个节点
		},
		check : {
			chkStyle : "checkbox",// 复选框类型
			enable : true
		// 每个节点上是否显示 CheckBox
		},
		data : {
			simpleData : {// 简单数据模式
				enable : true,
				idKey : "id",
				pIdKey : "pId",
				rootPId : "0"
			}
		},
		callback : {
			onDblClick : function(event, treeId, treeNode) {
				var id = treeNode.id;// 点击获取树状图内的用例的Id
				if (!treeNode.isParent) {
					book("导入成功！");
					getElementsByCaseId(id, canvas, elementTypes);
				}
			}
		}
	};
	var treeNodes;
	treeNodes = [{"id":"001","name":"设备检测与维护","pId":"0","isParent":"true","checked":null,"type":null},{"id":"1F1DB5C1603246A89727A9B931666072","name":"新增基本用例","pId":"001","isParent":"false","checked":null,"type":"0"},{"id":"002","name":"待机模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"B72B8AA2188E4A4181B0B03920019A69","name":"设备重新上电初始化","pId":"002","isParent":"false","checked":null,"type":"0"},{"id":"E84D7BFFBC3D44D4BCF5970D24317F05","name":"试验拖动控件","pId":"002","isParent":"false","checked":null,"type":"0"},{"id":"003","name":"出入段模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"004","name":"调车模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"6B814BF36EB74D1091D48982405F042F","name":"调车按固定限速控制20191216","pId":"004","isParent":"false","checked":null,"type":"0"},{"id":"005","name":"降级模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"187F18E08EF94CB6B2B30827FABB01E6","name":"1","pId":"005","isParent":"false","checked":null,"type":"1"},{"id":"40C83CAC46234550AE577B2B7AE066D5","name":"ZTL报警倒计时结束输出卸载和制动","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"8FF59329248849DBB4F8D4B831FAFEC0","name":"ZTL报警倒输出制动停车后自动缓解","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"5622611EECFD4AADA539B314C2A87DDA","name":"按压警惕键ZTL报警控制暂停4s","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"4CB109C2462E40228C5D5B8C72CB4523","name":"测试c3","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"727DBBFB46A9449AA7BEFA30FD161C76","name":"待机转降级模式","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"119D60691E5B4CF1A6717779FC3E5D8E","name":"单通道速度采集判断","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"5578B47A13A74FDEA79E9EAD8CCCFC5C","name":"单系速度测试20191204","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"BE5CC95B53BF4B8F8E49C0C381E160EE","name":"工况采集判断","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"FAF554D5E8AE472882FF483993A9C2D6","name":"工况采集判断","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"12A94923318F4EE8AF3704AC71A604D0","name":"工况采集判断20191202","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"D4EC4D2F9C9B4FB38C6B92289CA6B993","name":"工况采集判断20191223","pId":"005","isParent":"false","checked":null,"type":"1"},{"id":"57D1E45FFDD44235B30503294B04528E","name":"关闭信号变为进行信号ZTL报警控制结束","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"49DB164AC94B41B39F0F968E453B41AB","name":"关闭信号速度小于5不启动ZTL报警控制","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"69C8775CC2244BB5B229A29777ADD7CD","name":"降级模式ZTL报警控制","pId":"005","isParent":"false","checked":null,"type":"1"},{"id":"E7BD160C7C3A4D3CB03423C431A8BF59","name":"开放信号不启动ZTL报警1","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"05C9CBD9A4CE471AB63BA31F939E524D","name":"速度采集","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"EFFF9D0103354A3E98F106111F2C11AD","name":"速度采集判断20191204","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"11130CBC7C844A84A81C5E17E91DCE5C","name":"速度大于6启动ZTL报警","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"2F9610A3B86A420280B65CA5347E7BA1","name":"速度通道信号异常","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"C2213788BEFC40DB802E6E40C46CF2C5","name":"速度通道异常的控制20191223","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"E5B3888B9B0143159BB33947673E12EA","name":"速度小于5ZTL报警控制结束","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"80CD6FCE6DF04CC68C1910A15260C5AC","name":"支线前后均有揭示转移前控制","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"A45C31F4E6DE497BBC88C97AC75783AD","name":"转入降级模式","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"006","name":"通常模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"6CF0DB47C36B4A06B33B3697FFC97A82","name":"10条临时限速同时起控","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"BC606D255E6A4CDD9687EE677F8E9B8E","name":"10条限速揭示同时起控20191223","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"85435E17B830428EAC1C4B1630E65905","name":"lkj","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"E767438BA1EE48069F028E64DDA6DFE2","name":"测试c1","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"71912107085944A78F60929B64B22941","name":"测试c2","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"8C77273134C844ED83204D35B146FD1F","name":"乘降所揭示","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"C09A7368E34D4541B46418C213CB1980","name":"乘降所揭示解除","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"BDD7ED7CA33C494594A1067A084A1D91","name":"乘降所揭示控制20191206","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"54F38974516145248EF27388B8F8471D","name":"防汛揭示控制20191206","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"A4BD7004A980403199CBA937CB095B52","name":"防汛揭示提示窗口","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"08A8E3155A294220906E525995A4EABC","name":"防汛揭示语音提示","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"91F3777F13634A0889D1DFC5753ABBF8","name":"防汛提示揭示控制","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"FF964A2F44974E3E80237295312D6C90","name":"高速道岔控制20191218","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"594E9050F2C741AEB1076213916215C0","name":"股道无码解锁通过","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"8A80C0E33904457E82978A88960B4314","name":"股道无码通过解锁20191204","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"7592DE7E83C44B09859DF29DEDDAE7C8","name":"货物列车不允许进入客车靠标停车困难站控制","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"AAEC48D06DF14F2FB716D236682EFA27","name":"交流区段股道无码解锁通过","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"0F343041FC8E4FFC87490C015E827ED9","name":"进入通常模式","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"19562BCF1B434E44BE8080DBA8440066","name":"距离大于200m不允许进入客车靠标停车困难站控制","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"7BF1D65AD6F54EF2ABA9B3EBFFA0F173","name":"临时路票办理20191213","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"3D3548429F2548A4B7F965830AC400DF","name":"临时路票办理控件模式20191217","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"9073E86B594F45FC8C4EC37AEC8FA0B7","name":"临时慢行揭示起控后进行支线转移","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"CB299548965A48B9AE33BD6002582FC2","name":"临时慢行揭示起控前进行支线转移","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"287A32C297BE4604B00B78701D94122A","name":"临时限速揭示查询","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"F1CB77CE951E45A5AA1C717E35890A9C","name":"临时限速揭示控制","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"25B47985BBFB42CFB07518B4BDDA0BCF","name":"临时限速揭示控制20191219","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"62BC9CC27360496DBF7E1026AAAC236B","name":"临时限速揭示时间临近的控制","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"7966A7149C094AA18AC16B26F8EE4858","name":"临时限速揭示提示窗口","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"9404ED3F13F845868991097393E58F3F","name":"绿灯确认功能","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"EBBE5931CCF84DA5B91DA5A2C7122D92","name":"绿黄灯确认20191205","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"9246CFCC7E2B4E0DAFF018AB60F84728","name":"绿黄灯确认功能交流计数区段","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"5A922B014625476198296A08B6CC9AFA","name":"绿黄灯确认功能交流计数一离去停车","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"D7A44E92C02B4034BEE238068C45BA58","name":"绿黄灯确认一离去停车","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"AF891A348ECE4D2DA4B96824EF80AE21","name":"绿黄灯确认一离去信号机控制20191205","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"51979EF3BAE048F7B263C7306B58D066","name":"速度大于等于20不允许进入客车靠标停车困难站控制","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"F3D2515D9B774E048440BD7E30E69AEF","name":"特殊前行办理20191212","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"94F30650D5234AA5BE6F4D0E9F67115F","name":"特殊前行测试用","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"5BE132F4621645A2B12488955D610BEC","name":"站内UU侧线发车控制20191218","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"6567386094394ED58F3AAF20D225CA34","name":"支线调用测试20191210","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"24645AC049E949589597DC76F721A56E","name":"支线数据","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"D35859AC9C544ECEB59C0A3D0D07E410","name":"支线转移前后均有支线进行支线转移","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"9DA9C2487A6240459441C1B13782F211","name":"支线转移数据调用转移后","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"6BDB8AF885FA47F59CCA120DB422AEA7","name":"转降级后揭示不提示","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"007","name":"随时停车模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"008","name":"无防冒模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"009","name":"非本务模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"010","name":"与其他ATP结合模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"011","name":"特殊行车","pId":"0","isParent":"true","checked":null,"type":null},{"id":"E256E10D7DFD47BAB2E30C145EA96F89","name":"恩都是色多所","pId":"011","isParent":"false","checked":null,"type":"0"},{"id":"0B27A9A9E3124AAAB297F0E945C6A600","name":"有计划路票","pId":"FE79DEBDC3F94964B08615DFCAC6CDB8","isParent":"true","checked":null,"type":null},{"id":"16170FCDF30746C686A25162D388A537","name":"有计划路票，降级状态允许办理路票","pId":"0B27A9A9E3124AAAB297F0E945C6A600","isParent":"false","checked":null,"type":"1"},{"id":"60090089D1654990B4E341BC5B3F078D","name":"有计划路票，时间临近的提示和控制12031","pId":"0B27A9A9E3124AAAB297F0E945C6A600","isParent":"false","checked":null,"type":"1"},{"id":"4BFAB00A6FB143CD9FF7EF26A6468CDE","name":"有计划路票，有计划路票的办理及控制","pId":"0B27A9A9E3124AAAB297F0E945C6A600","isParent":"false","checked":null,"type":"1"},{"id":"2EF5904507F94CECB9B5B665186BCFB5","name":"支线数据调用","pId":"006","isParent":"true","checked":null,"type":null},{"id":"E97B7060273C4B59A2963264CED27570","name":"支线数据调用","pId":"2EF5904507F94CECB9B5B665186BCFB5","isParent":"false","checked":null,"type":"0"},{"id":"74C1541ECD0C4454BFB1ED9BE2F31834","name":"支线数据调用打开周期警惕","pId":"2EF5904507F94CECB9B5B665186BCFB5","isParent":"false","checked":null,"type":"0"},{"id":"6367FB1E88904810B52B779306D160F3","name":"支线数据调用使用支线选择控件","pId":"2EF5904507F94CECB9B5B665186BCFB5","isParent":"false","checked":null,"type":"0"},{"id":"312DBB07FB4440E9AE10B6EF9C8DA7F3","name":"平面调车控制","pId":"004","isParent":"true","checked":null,"type":null},{"id":"4079CEFC7E5D4E3691CAEB87705DAD5A","name":"调车限速输入","pId":"004","isParent":"true","checked":null,"type":null},{"id":"AED3BBFFD5494167B7B914A87F58A7EA","name":"调车模式限速允许输入，不按固定限速","pId":"4079CEFC7E5D4E3691CAEB87705DAD5A","isParent":"false","checked":null,"type":"1"},{"id":"4143170BC3B54C7CAA54EDC804BF5030","name":"十车","pId":"312DBB07FB4440E9AE10B6EF9C8DA7F3","isParent":"true","checked":null,"type":null},{"id":"02D99F3DD3D0456E848BFFB00608D0F7","name":"平调十车，控制指令输出时机","pId":"4143170BC3B54C7CAA54EDC804BF5030","isParent":"false","checked":null,"type":"1"},{"id":"8E98CA9BE6E14E42ADE6F9437E29C4CE","name":"平调十车，停车状态收到十车信号","pId":"4143170BC3B54C7CAA54EDC804BF5030","isParent":"false","checked":null,"type":"1"},{"id":"01A30B179F6B4AC48A1B18DBDA1E75B9","name":"平调十车，有速度收到十车信号","pId":"4143170BC3B54C7CAA54EDC804BF5030","isParent":"false","checked":null,"type":"1"},{"id":"EA1B137892334F5EA72947A17FBB6DAE","name":"平面调车十车控制","pId":"4143170BC3B54C7CAA54EDC804BF5030","isParent":"false","checked":null,"type":"0"},{"id":"539EB570AAAE437B99D853AA17C40F8F","name":"临时路票","pId":"FE79DEBDC3F94964B08615DFCAC6CDB8","isParent":"true","checked":null,"type":null},{"id":"0EEB813690084665B3B4C9E3060AF61F","name":"临时路票，临时路票的办理及控制","pId":"539EB570AAAE437B99D853AA17C40F8F","isParent":"false","checked":null,"type":"1"},{"id":"C7F761BE593A4BCE89B57CE3BE0C713A","name":"临时路票，始发站允许办理临时路票1203","pId":"539EB570AAAE437B99D853AA17C40F8F","isParent":"false","checked":null,"type":"1"},{"id":"56007EA219504797BDF6509024EED087","name":"周期警惕","pId":"006","isParent":"true","checked":null,"type":null},{"id":"B637399A531C48FD873C29570AB02248","name":"周期警惕报警控制","pId":"56007EA219504797BDF6509024EED087","isParent":"false","checked":null,"type":"1"},{"id":"574B65A6D44242E181FA401F161C75D1","name":"侧线接车","pId":"FC04AAD433EA4DF6AEDBF324483AB696","isParent":"true","checked":null,"type":null},{"id":"0370245B475C417797C8AA417B8EF009","name":"18号及以上道岔","pId":"574B65A6D44242E181FA401F161C75D1","isParent":"false","checked":null,"type":"0"},{"id":"79A5A1AD681B4209A429A2C234A94AF5","name":"侧线接车3","pId":"574B65A6D44242E181FA401F161C75D1","isParent":"false","checked":null,"type":"0"},{"id":"E629932A32424B5A8FA3579C85EA0E68","name":"侧线接车京广下行陆家山3道接车","pId":"574B65A6D44242E181FA401F161C75D1","isParent":"false","checked":null,"type":"0"},{"id":"5933C969972B410CB239A97FD7A05E62","name":"绿灯/绿黄灯确认","pId":"006","isParent":"true","checked":null,"type":null},{"id":"6432B0A53EAE4393BCC3303390768027","name":"防汛提示","pId":"006","isParent":"true","checked":null,"type":null},{"id":"65256C380BB540D28DD4F9C8875D6AE9","name":"手柄防溜控制","pId":"006","isParent":"true","checked":null,"type":null},{"id":"659D7FC5694C407FBF4EDD9748E98C90","name":"手柄保持加载运行距离大于等于10米启动手柄防溜","pId":"65256C380BB540D28DD4F9C8875D6AE9","isParent":"false","checked":null,"type":"0"},{"id":"4407C38BF07C40D296EDF2C2022CC572","name":"手柄保持未加载运行速度大于等于3启动手柄防溜","pId":"65256C380BB540D28DD4F9C8875D6AE9","isParent":"false","checked":null,"type":"0"},{"id":"E3C14B400D6A46A79FE2E59C00355676","name":"手柄防溜，倒计时10秒结束输出卸载和紧急","pId":"65256C380BB540D28DD4F9C8875D6AE9","isParent":"false","checked":null,"type":"1"},{"id":"888B3E1FA6D84C96998822568B2B0E41","name":"手柄防溜，防溜启动后由零位变非零位","pId":"65256C380BB540D28DD4F9C8875D6AE9","isParent":"false","checked":null,"type":"1"},{"id":"16DB3EF2685346CA87515E6C51039C9B","name":"手柄防溜，手柄非零位速度大于等于3","pId":"65256C380BB540D28DD4F9C8875D6AE9","isParent":"false","checked":null,"type":"1"},{"id":"62F15AFB7187440A9E059277F4291230","name":"手柄防溜，手柄零位防溜不启动","pId":"65256C380BB540D28DD4F9C8875D6AE9","isParent":"false","checked":null,"type":"1"},{"id":"7ED6CDBBDE044043BF257ECF02571059","name":"手柄防溜，手柄零位运行距离大于10米","pId":"65256C380BB540D28DD4F9C8875D6AE9","isParent":"false","checked":null,"type":"1"},{"id":"6E3BC314AD8A4C6FBEE44143226B593C","name":"五车","pId":"312DBB07FB4440E9AE10B6EF9C8DA7F3","isParent":"true","checked":null,"type":null},{"id":"70ED2FB99C4642C78B1F078377C9616B","name":"货车特殊前行","pId":"006","isParent":"true","checked":null,"type":null},{"id":"A1D53031499149B9AC6155DFFF47E4C3","name":"货车特殊前行的办理及控制201912022","pId":"70ED2FB99C4642C78B1F078377C9616B","isParent":"false","checked":null,"type":"1"},{"id":"B62EC28B4E894A8FA877C4DF04011DF2","name":"临时限速","pId":"006","isParent":"true","checked":null,"type":null},{"id":"2A5D2F804C4A4ABDB7F6D2C98CB78A22","name":"临时限速的提示和控制","pId":"B62EC28B4E894A8FA877C4DF04011DF2","isParent":"false","checked":null,"type":"0"},{"id":"C72AEAC7934849769908143B61CF4DEE","name":"走停走控制","pId":"006","isParent":"true","checked":null,"type":null},{"id":"61A8BFA39B544C28A1288C831AE7F592","name":"走停走，大秦走停走区段1122","pId":"C72AEAC7934849769908143B61CF4DEE","isParent":"false","checked":null,"type":"1"},{"id":"3114EA7470434D74BAC735A6D93608B6","name":"走停走，动车组列车在高速区段","pId":"C72AEAC7934849769908143B61CF4DEE","isParent":"false","checked":null,"type":"1"},{"id":"6575ABAD2E3749BA9C06168C8F33AA88","name":"走停走，普通机车牵引的列车1122","pId":"C72AEAC7934849769908143B61CF4DEE","isParent":"false","checked":null,"type":"1"},{"id":"DD6CC0D4852E46E1A9E6EB35A9452A79","name":"客车靠标停车困难站","pId":"006","isParent":"true","checked":null,"type":null},{"id":"FD7D516BFDC748C7A62B0EFBDC3E0292","name":"客车靠标停车困难站货车办理无效","pId":"DD6CC0D4852E46E1A9E6EB35A9452A79","isParent":"false","checked":null,"type":"1"},{"id":"DFABCE3E8FEF42D287E4414B5EF7E782","name":"客车靠标停车困难站控制","pId":"DD6CC0D4852E46E1A9E6EB35A9452A79","isParent":"false","checked":null,"type":"0"},{"id":"5F61CA689E80453286C585A516E53D9F","name":"客车靠标停车困难站控制","pId":"DD6CC0D4852E46E1A9E6EB35A9452A79","isParent":"false","checked":null,"type":"0"},{"id":"2674545EC58F453EB042A2B241E9592E","name":"客车靠标停车困难站控制1122","pId":"DD6CC0D4852E46E1A9E6EB35A9452A79","isParent":"false","checked":null,"type":"1"},{"id":"E7B4A77BB0C344079F00D5264B96B8A8","name":"客车靠标停车困难站控制停车5min出站信号为L灯","pId":"DD6CC0D4852E46E1A9E6EB35A9452A79","isParent":"false","checked":null,"type":"0"},{"id":"9F8102292ADE49D99589F83168D45006","name":"客车靠标停车困难站停车5min出站信号为HU灯","pId":"DD6CC0D4852E46E1A9E6EB35A9452A79","isParent":"false","checked":null,"type":"0"},{"id":"E59A5F44F93243BFB126DE0B2A1355F1","name":"侧线发车","pId":"FC04AAD433EA4DF6AEDBF324483AB696","isParent":"true","checked":null,"type":null},{"id":"FC247150F90E4B2D8BDF67EC0522598D","name":"侧线发车京九下行团风3道通过","pId":"E59A5F44F93243BFB126DE0B2A1355F1","isParent":"false","checked":null,"type":"0"},{"id":"562CC57C526648A49694198C40F3A404","name":"侧线发车团风3道发车发往京广下行黄州","pId":"E59A5F44F93243BFB126DE0B2A1355F1","isParent":"false","checked":null,"type":"0"},{"id":"EC8E5D786AB842E49905C712B10BE0E2","name":"乘降所","pId":"006","isParent":"true","checked":null,"type":null},{"id":"FC04AAD433EA4DF6AEDBF324483AB696","name":"侧线控制","pId":"006","isParent":"true","checked":null,"type":null},{"id":"FDC7D18CDFC64F5F9F23A92EEE177EFC","name":"股道无码通过","pId":"006","isParent":"true","checked":null,"type":null},{"id":"FE79DEBDC3F94964B08615DFCAC6CDB8","name":"路票控制","pId":"006","isParent":"true","checked":null,"type":null}];// 所有表格内基本用例
	var t = $("#casetree");
	// 加载基本用例树信息
	t = $.fn.zTree.init(t, setting, treeNodes);
	
//	$.ajax({
//		async : false,// 是否异步
//		cache : false,// 是否使用缓存
//		type : 'POST',// 请求方式：post
//		dataType : 'json',// 数据传输格式：json
//		data : {
//			pid:0,
//			base:true
//		},
//		url : "../../../basecaseTree/queryBaseCaseTree",// 请求路径
//		error : function() {
//			// 请求失败处理函数
//			danger("请求基本用例树出错");
//		},
//		success : function(data) {
//			if (data.flag == 0) {
//				exportRaw('text.txt',JSON.stringify(data.content));
//				// 请求成功后处理函数
//				treeNodes = [{"id":"001","name":"设备检测与维护","pId":"0","isParent":"true","checked":null,"type":null},{"id":"1F1DB5C1603246A89727A9B931666072","name":"新增基本用例","pId":"001","isParent":"false","checked":null,"type":"0"},{"id":"002","name":"待机模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"B72B8AA2188E4A4181B0B03920019A69","name":"设备重新上电初始化","pId":"002","isParent":"false","checked":null,"type":"0"},{"id":"E84D7BFFBC3D44D4BCF5970D24317F05","name":"试验拖动控件","pId":"002","isParent":"false","checked":null,"type":"0"},{"id":"003","name":"出入段模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"004","name":"调车模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"6B814BF36EB74D1091D48982405F042F","name":"调车按固定限速控制20191216","pId":"004","isParent":"false","checked":null,"type":"0"},{"id":"005","name":"降级模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"187F18E08EF94CB6B2B30827FABB01E6","name":"1","pId":"005","isParent":"false","checked":null,"type":"1"},{"id":"40C83CAC46234550AE577B2B7AE066D5","name":"ZTL报警倒计时结束输出卸载和制动","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"8FF59329248849DBB4F8D4B831FAFEC0","name":"ZTL报警倒输出制动停车后自动缓解","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"5622611EECFD4AADA539B314C2A87DDA","name":"按压警惕键ZTL报警控制暂停4s","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"4CB109C2462E40228C5D5B8C72CB4523","name":"测试c3","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"727DBBFB46A9449AA7BEFA30FD161C76","name":"待机转降级模式","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"119D60691E5B4CF1A6717779FC3E5D8E","name":"单通道速度采集判断","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"5578B47A13A74FDEA79E9EAD8CCCFC5C","name":"单系速度测试20191204","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"BE5CC95B53BF4B8F8E49C0C381E160EE","name":"工况采集判断","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"FAF554D5E8AE472882FF483993A9C2D6","name":"工况采集判断","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"12A94923318F4EE8AF3704AC71A604D0","name":"工况采集判断20191202","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"D4EC4D2F9C9B4FB38C6B92289CA6B993","name":"工况采集判断20191223","pId":"005","isParent":"false","checked":null,"type":"1"},{"id":"57D1E45FFDD44235B30503294B04528E","name":"关闭信号变为进行信号ZTL报警控制结束","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"49DB164AC94B41B39F0F968E453B41AB","name":"关闭信号速度小于5不启动ZTL报警控制","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"69C8775CC2244BB5B229A29777ADD7CD","name":"降级模式ZTL报警控制","pId":"005","isParent":"false","checked":null,"type":"1"},{"id":"E7BD160C7C3A4D3CB03423C431A8BF59","name":"开放信号不启动ZTL报警1","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"05C9CBD9A4CE471AB63BA31F939E524D","name":"速度采集","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"EFFF9D0103354A3E98F106111F2C11AD","name":"速度采集判断20191204","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"11130CBC7C844A84A81C5E17E91DCE5C","name":"速度大于6启动ZTL报警","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"2F9610A3B86A420280B65CA5347E7BA1","name":"速度通道信号异常","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"C2213788BEFC40DB802E6E40C46CF2C5","name":"速度通道异常的控制20191223","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"E5B3888B9B0143159BB33947673E12EA","name":"速度小于5ZTL报警控制结束","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"80CD6FCE6DF04CC68C1910A15260C5AC","name":"支线前后均有揭示转移前控制","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"A45C31F4E6DE497BBC88C97AC75783AD","name":"转入降级模式","pId":"005","isParent":"false","checked":null,"type":"0"},{"id":"006","name":"通常模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"6CF0DB47C36B4A06B33B3697FFC97A82","name":"10条临时限速同时起控","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"BC606D255E6A4CDD9687EE677F8E9B8E","name":"10条限速揭示同时起控20191223","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"85435E17B830428EAC1C4B1630E65905","name":"lkj","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"E767438BA1EE48069F028E64DDA6DFE2","name":"测试c1","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"71912107085944A78F60929B64B22941","name":"测试c2","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"8C77273134C844ED83204D35B146FD1F","name":"乘降所揭示","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"C09A7368E34D4541B46418C213CB1980","name":"乘降所揭示解除","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"BDD7ED7CA33C494594A1067A084A1D91","name":"乘降所揭示控制20191206","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"54F38974516145248EF27388B8F8471D","name":"防汛揭示控制20191206","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"A4BD7004A980403199CBA937CB095B52","name":"防汛揭示提示窗口","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"08A8E3155A294220906E525995A4EABC","name":"防汛揭示语音提示","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"91F3777F13634A0889D1DFC5753ABBF8","name":"防汛提示揭示控制","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"FF964A2F44974E3E80237295312D6C90","name":"高速道岔控制20191218","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"594E9050F2C741AEB1076213916215C0","name":"股道无码解锁通过","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"8A80C0E33904457E82978A88960B4314","name":"股道无码通过解锁20191204","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"7592DE7E83C44B09859DF29DEDDAE7C8","name":"货物列车不允许进入客车靠标停车困难站控制","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"AAEC48D06DF14F2FB716D236682EFA27","name":"交流区段股道无码解锁通过","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"0F343041FC8E4FFC87490C015E827ED9","name":"进入通常模式","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"19562BCF1B434E44BE8080DBA8440066","name":"距离大于200m不允许进入客车靠标停车困难站控制","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"7BF1D65AD6F54EF2ABA9B3EBFFA0F173","name":"临时路票办理20191213","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"3D3548429F2548A4B7F965830AC400DF","name":"临时路票办理控件模式20191217","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"9073E86B594F45FC8C4EC37AEC8FA0B7","name":"临时慢行揭示起控后进行支线转移","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"CB299548965A48B9AE33BD6002582FC2","name":"临时慢行揭示起控前进行支线转移","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"287A32C297BE4604B00B78701D94122A","name":"临时限速揭示查询","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"F1CB77CE951E45A5AA1C717E35890A9C","name":"临时限速揭示控制","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"25B47985BBFB42CFB07518B4BDDA0BCF","name":"临时限速揭示控制20191219","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"62BC9CC27360496DBF7E1026AAAC236B","name":"临时限速揭示时间临近的控制","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"7966A7149C094AA18AC16B26F8EE4858","name":"临时限速揭示提示窗口","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"9404ED3F13F845868991097393E58F3F","name":"绿灯确认功能","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"EBBE5931CCF84DA5B91DA5A2C7122D92","name":"绿黄灯确认20191205","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"9246CFCC7E2B4E0DAFF018AB60F84728","name":"绿黄灯确认功能交流计数区段","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"5A922B014625476198296A08B6CC9AFA","name":"绿黄灯确认功能交流计数一离去停车","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"D7A44E92C02B4034BEE238068C45BA58","name":"绿黄灯确认一离去停车","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"AF891A348ECE4D2DA4B96824EF80AE21","name":"绿黄灯确认一离去信号机控制20191205","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"51979EF3BAE048F7B263C7306B58D066","name":"速度大于等于20不允许进入客车靠标停车困难站控制","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"F3D2515D9B774E048440BD7E30E69AEF","name":"特殊前行办理20191212","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"94F30650D5234AA5BE6F4D0E9F67115F","name":"特殊前行测试用","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"5BE132F4621645A2B12488955D610BEC","name":"站内UU侧线发车控制20191218","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"6567386094394ED58F3AAF20D225CA34","name":"支线调用测试20191210","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"24645AC049E949589597DC76F721A56E","name":"支线数据","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"D35859AC9C544ECEB59C0A3D0D07E410","name":"支线转移前后均有支线进行支线转移","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"9DA9C2487A6240459441C1B13782F211","name":"支线转移数据调用转移后","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"6BDB8AF885FA47F59CCA120DB422AEA7","name":"转降级后揭示不提示","pId":"006","isParent":"false","checked":null,"type":"0"},{"id":"007","name":"随时停车模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"008","name":"无防冒模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"009","name":"非本务模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"010","name":"与其他ATP结合模式","pId":"0","isParent":"true","checked":null,"type":null},{"id":"011","name":"特殊行车","pId":"0","isParent":"true","checked":null,"type":null},{"id":"E256E10D7DFD47BAB2E30C145EA96F89","name":"恩都是色多所","pId":"011","isParent":"false","checked":null,"type":"0"},{"id":"0B27A9A9E3124AAAB297F0E945C6A600","name":"有计划路票","pId":"FE79DEBDC3F94964B08615DFCAC6CDB8","isParent":"true","checked":null,"type":null},{"id":"16170FCDF30746C686A25162D388A537","name":"有计划路票，降级状态允许办理路票","pId":"0B27A9A9E3124AAAB297F0E945C6A600","isParent":"false","checked":null,"type":"1"},{"id":"60090089D1654990B4E341BC5B3F078D","name":"有计划路票，时间临近的提示和控制12031","pId":"0B27A9A9E3124AAAB297F0E945C6A600","isParent":"false","checked":null,"type":"1"},{"id":"4BFAB00A6FB143CD9FF7EF26A6468CDE","name":"有计划路票，有计划路票的办理及控制","pId":"0B27A9A9E3124AAAB297F0E945C6A600","isParent":"false","checked":null,"type":"1"},{"id":"2EF5904507F94CECB9B5B665186BCFB5","name":"支线数据调用","pId":"006","isParent":"true","checked":null,"type":null},{"id":"E97B7060273C4B59A2963264CED27570","name":"支线数据调用","pId":"2EF5904507F94CECB9B5B665186BCFB5","isParent":"false","checked":null,"type":"0"},{"id":"74C1541ECD0C4454BFB1ED9BE2F31834","name":"支线数据调用打开周期警惕","pId":"2EF5904507F94CECB9B5B665186BCFB5","isParent":"false","checked":null,"type":"0"},{"id":"6367FB1E88904810B52B779306D160F3","name":"支线数据调用使用支线选择控件","pId":"2EF5904507F94CECB9B5B665186BCFB5","isParent":"false","checked":null,"type":"0"},{"id":"312DBB07FB4440E9AE10B6EF9C8DA7F3","name":"平面调车控制","pId":"004","isParent":"true","checked":null,"type":null},{"id":"4079CEFC7E5D4E3691CAEB87705DAD5A","name":"调车限速输入","pId":"004","isParent":"true","checked":null,"type":null},{"id":"AED3BBFFD5494167B7B914A87F58A7EA","name":"调车模式限速允许输入，不按固定限速","pId":"4079CEFC7E5D4E3691CAEB87705DAD5A","isParent":"false","checked":null,"type":"1"},{"id":"4143170BC3B54C7CAA54EDC804BF5030","name":"十车","pId":"312DBB07FB4440E9AE10B6EF9C8DA7F3","isParent":"true","checked":null,"type":null},{"id":"02D99F3DD3D0456E848BFFB00608D0F7","name":"平调十车，控制指令输出时机","pId":"4143170BC3B54C7CAA54EDC804BF5030","isParent":"false","checked":null,"type":"1"},{"id":"8E98CA9BE6E14E42ADE6F9437E29C4CE","name":"平调十车，停车状态收到十车信号","pId":"4143170BC3B54C7CAA54EDC804BF5030","isParent":"false","checked":null,"type":"1"},{"id":"01A30B179F6B4AC48A1B18DBDA1E75B9","name":"平调十车，有速度收到十车信号","pId":"4143170BC3B54C7CAA54EDC804BF5030","isParent":"false","checked":null,"type":"1"},{"id":"EA1B137892334F5EA72947A17FBB6DAE","name":"平面调车十车控制","pId":"4143170BC3B54C7CAA54EDC804BF5030","isParent":"false","checked":null,"type":"0"},{"id":"539EB570AAAE437B99D853AA17C40F8F","name":"临时路票","pId":"FE79DEBDC3F94964B08615DFCAC6CDB8","isParent":"true","checked":null,"type":null},{"id":"0EEB813690084665B3B4C9E3060AF61F","name":"临时路票，临时路票的办理及控制","pId":"539EB570AAAE437B99D853AA17C40F8F","isParent":"false","checked":null,"type":"1"},{"id":"C7F761BE593A4BCE89B57CE3BE0C713A","name":"临时路票，始发站允许办理临时路票1203","pId":"539EB570AAAE437B99D853AA17C40F8F","isParent":"false","checked":null,"type":"1"},{"id":"56007EA219504797BDF6509024EED087","name":"周期警惕","pId":"006","isParent":"true","checked":null,"type":null},{"id":"B637399A531C48FD873C29570AB02248","name":"周期警惕报警控制","pId":"56007EA219504797BDF6509024EED087","isParent":"false","checked":null,"type":"1"},{"id":"574B65A6D44242E181FA401F161C75D1","name":"侧线接车","pId":"FC04AAD433EA4DF6AEDBF324483AB696","isParent":"true","checked":null,"type":null},{"id":"0370245B475C417797C8AA417B8EF009","name":"18号及以上道岔","pId":"574B65A6D44242E181FA401F161C75D1","isParent":"false","checked":null,"type":"0"},{"id":"79A5A1AD681B4209A429A2C234A94AF5","name":"侧线接车3","pId":"574B65A6D44242E181FA401F161C75D1","isParent":"false","checked":null,"type":"0"},{"id":"E629932A32424B5A8FA3579C85EA0E68","name":"侧线接车京广下行陆家山3道接车","pId":"574B65A6D44242E181FA401F161C75D1","isParent":"false","checked":null,"type":"0"},{"id":"5933C969972B410CB239A97FD7A05E62","name":"绿灯/绿黄灯确认","pId":"006","isParent":"true","checked":null,"type":null},{"id":"6432B0A53EAE4393BCC3303390768027","name":"防汛提示","pId":"006","isParent":"true","checked":null,"type":null},{"id":"65256C380BB540D28DD4F9C8875D6AE9","name":"手柄防溜控制","pId":"006","isParent":"true","checked":null,"type":null},{"id":"659D7FC5694C407FBF4EDD9748E98C90","name":"手柄保持加载运行距离大于等于10米启动手柄防溜","pId":"65256C380BB540D28DD4F9C8875D6AE9","isParent":"false","checked":null,"type":"0"},{"id":"4407C38BF07C40D296EDF2C2022CC572","name":"手柄保持未加载运行速度大于等于3启动手柄防溜","pId":"65256C380BB540D28DD4F9C8875D6AE9","isParent":"false","checked":null,"type":"0"},{"id":"E3C14B400D6A46A79FE2E59C00355676","name":"手柄防溜，倒计时10秒结束输出卸载和紧急","pId":"65256C380BB540D28DD4F9C8875D6AE9","isParent":"false","checked":null,"type":"1"},{"id":"888B3E1FA6D84C96998822568B2B0E41","name":"手柄防溜，防溜启动后由零位变非零位","pId":"65256C380BB540D28DD4F9C8875D6AE9","isParent":"false","checked":null,"type":"1"},{"id":"16DB3EF2685346CA87515E6C51039C9B","name":"手柄防溜，手柄非零位速度大于等于3","pId":"65256C380BB540D28DD4F9C8875D6AE9","isParent":"false","checked":null,"type":"1"},{"id":"62F15AFB7187440A9E059277F4291230","name":"手柄防溜，手柄零位防溜不启动","pId":"65256C380BB540D28DD4F9C8875D6AE9","isParent":"false","checked":null,"type":"1"},{"id":"7ED6CDBBDE044043BF257ECF02571059","name":"手柄防溜，手柄零位运行距离大于10米","pId":"65256C380BB540D28DD4F9C8875D6AE9","isParent":"false","checked":null,"type":"1"},{"id":"6E3BC314AD8A4C6FBEE44143226B593C","name":"五车","pId":"312DBB07FB4440E9AE10B6EF9C8DA7F3","isParent":"true","checked":null,"type":null},{"id":"70ED2FB99C4642C78B1F078377C9616B","name":"货车特殊前行","pId":"006","isParent":"true","checked":null,"type":null},{"id":"A1D53031499149B9AC6155DFFF47E4C3","name":"货车特殊前行的办理及控制201912022","pId":"70ED2FB99C4642C78B1F078377C9616B","isParent":"false","checked":null,"type":"1"},{"id":"B62EC28B4E894A8FA877C4DF04011DF2","name":"临时限速","pId":"006","isParent":"true","checked":null,"type":null},{"id":"2A5D2F804C4A4ABDB7F6D2C98CB78A22","name":"临时限速的提示和控制","pId":"B62EC28B4E894A8FA877C4DF04011DF2","isParent":"false","checked":null,"type":"0"},{"id":"C72AEAC7934849769908143B61CF4DEE","name":"走停走控制","pId":"006","isParent":"true","checked":null,"type":null},{"id":"61A8BFA39B544C28A1288C831AE7F592","name":"走停走，大秦走停走区段1122","pId":"C72AEAC7934849769908143B61CF4DEE","isParent":"false","checked":null,"type":"1"},{"id":"3114EA7470434D74BAC735A6D93608B6","name":"走停走，动车组列车在高速区段","pId":"C72AEAC7934849769908143B61CF4DEE","isParent":"false","checked":null,"type":"1"},{"id":"6575ABAD2E3749BA9C06168C8F33AA88","name":"走停走，普通机车牵引的列车1122","pId":"C72AEAC7934849769908143B61CF4DEE","isParent":"false","checked":null,"type":"1"},{"id":"DD6CC0D4852E46E1A9E6EB35A9452A79","name":"客车靠标停车困难站","pId":"006","isParent":"true","checked":null,"type":null},{"id":"FD7D516BFDC748C7A62B0EFBDC3E0292","name":"客车靠标停车困难站货车办理无效","pId":"DD6CC0D4852E46E1A9E6EB35A9452A79","isParent":"false","checked":null,"type":"1"},{"id":"DFABCE3E8FEF42D287E4414B5EF7E782","name":"客车靠标停车困难站控制","pId":"DD6CC0D4852E46E1A9E6EB35A9452A79","isParent":"false","checked":null,"type":"0"},{"id":"5F61CA689E80453286C585A516E53D9F","name":"客车靠标停车困难站控制","pId":"DD6CC0D4852E46E1A9E6EB35A9452A79","isParent":"false","checked":null,"type":"0"},{"id":"2674545EC58F453EB042A2B241E9592E","name":"客车靠标停车困难站控制1122","pId":"DD6CC0D4852E46E1A9E6EB35A9452A79","isParent":"false","checked":null,"type":"1"},{"id":"E7B4A77BB0C344079F00D5264B96B8A8","name":"客车靠标停车困难站控制停车5min出站信号为L灯","pId":"DD6CC0D4852E46E1A9E6EB35A9452A79","isParent":"false","checked":null,"type":"0"},{"id":"9F8102292ADE49D99589F83168D45006","name":"客车靠标停车困难站停车5min出站信号为HU灯","pId":"DD6CC0D4852E46E1A9E6EB35A9452A79","isParent":"false","checked":null,"type":"0"},{"id":"E59A5F44F93243BFB126DE0B2A1355F1","name":"侧线发车","pId":"FC04AAD433EA4DF6AEDBF324483AB696","isParent":"true","checked":null,"type":null},{"id":"FC247150F90E4B2D8BDF67EC0522598D","name":"侧线发车京九下行团风3道通过","pId":"E59A5F44F93243BFB126DE0B2A1355F1","isParent":"false","checked":null,"type":"0"},{"id":"562CC57C526648A49694198C40F3A404","name":"侧线发车团风3道发车发往京广下行黄州","pId":"E59A5F44F93243BFB126DE0B2A1355F1","isParent":"false","checked":null,"type":"0"},{"id":"EC8E5D786AB842E49905C712B10BE0E2","name":"乘降所","pId":"006","isParent":"true","checked":null,"type":null},{"id":"FC04AAD433EA4DF6AEDBF324483AB696","name":"侧线控制","pId":"006","isParent":"true","checked":null,"type":null},{"id":"FDC7D18CDFC64F5F9F23A92EEE177EFC","name":"股道无码通过","pId":"006","isParent":"true","checked":null,"type":null},{"id":"FE79DEBDC3F94964B08615DFCAC6CDB8","name":"路票控制","pId":"006","isParent":"true","checked":null,"type":null}];// 所有表格内基本用例
//				var t = $("#casetree");
//				// 加载基本用例树信息
//				t = $.fn.zTree.init(t, setting, treeNodes);
//			} else {
//				danger(data.errorInfo);
//			}
//
//		}
//	});

}
// 提交基本用例信息，点击提交前，先执行保存逻辑，再执行提交逻辑
function submitBaseCase(addBaseCaseId) {
//	baseCaseEditeBool = false;// 屏蔽复制粘贴快捷键
//	BootstrapDialog.show({
//		title : '基本用例信息提交',
//		message : "确定提交此基本用例信息么？提交后将无法继续修改！",
//		buttons : [ {
//			icon : 'glyphicon glyphicon-check',
//			label : '确定',
//			cssClass : 'btn-primary',
//			autospin : true,
//			action : function(dialogRef) {
//				$.ajax({
//					type : "POST",
//					url : "../../../basecase/saveCaseAndElement",
//					data : {
//						"caseId" : addBaseCaseId,
//						"elements" : JSON.stringify(caseElements)
//					},
//					success : function(data) {
//						var flag = data.flag;
//						if (flag == 0) {// 点击提交时的保存执行成功后，再执行提交操作
//							submitFun(addBaseCaseId);
//						} else {
//							var content = "提交失败！";
//							danger(content);
//						}
//					}
//				});
//
//				baseCaseEditeBool = true;// 释放复制粘贴快捷键
//			}
//		}, {
//			label : '取消',
//			action : function(dialogRef) {
//				baseCaseEditeBool = true;// 释放复制粘贴快捷键
//				dialogRef.close();
//			}
//		} ]
//	});
}

// 点击提交时的保存执行成功后，再执行提交操作
function submitFun(addBaseCaseId) {
	/* ajax向后台发送提交基本用例信息 */
//	$.ajax({
//		type : "POST",
//		url : "../../../basecase/submitBaseCase",
//		data : {
//			"caseId" : addBaseCaseId,
//		},
//		success : function(data) {
//			var flag = data.flag;
//			if (flag == 0) {
//				initButton(1);
//				BootstrapDialog.alert({
//					title : '提示',
//					message : "用例提交成功!",
//					type : BootstrapDialog.TYPE_SUCCESS
//				});
//				setTimeout(function() {
//					BootstrapDialog.closeAll();
//				}, 800);
//			} else if (flag == -1) {
//				danger("服务器异常，用例提交失败!");
//			}
//		},
//		error : function(err) {
//			danger("服务器异常!");
//		}
//	});
}

// 审核基本用例信息
function auditBaseCase(addBaseCaseId) {
//	baseCaseEditeBool = false;// 屏蔽复制粘贴快捷键
//	BootstrapDialog
//			.show({
//				title : '基本用例信息审核',
//				message : $(
//						"<form class='form-inline' style='height:300px'></form>")
//						.load('baseCaseAudit.html'),
//				onshown : function() {
//					// 初始化各个值
//					$("#auditResult")
//							.append(
//									"<option value='2'>审核通过</option><option value='3'>审核不通过</option>");
//				},
//				buttons : [
//						{
//							icon : 'glyphicon glyphicon-check',
//							label : '确定',
//							cssClass : 'btn-primary',
//							autospin : true,
//							action : function(dialogRef) {
//								var auditResult = $("#auditResult").val();
//								var auditOpinion = $("#caseAudit").val();
//								var versionNow = $(
//										"input[name='versionNow']:checked")
//										.val();
//								// 判断类型是否为空
//								if (auditResult == "") {
//									warning("请选择审核结果!");
//									return false;
//								}
//								// 判断审核意见是否为空
//								if (auditOpinion == "") {
//									warning("审核意见不能为空!");
//									return false;
//								}
//								/* ajax向后台发送新建用例的数据 */
//								$.ajax({
//									type : "POST",
//									url : "../../../basecase/auditBaseCase",
//									data : {
//										"caseId" : addBaseCaseId,
//										"result" : auditResult,
//										"view" : auditOpinion,
//										"versionNow" : versionNow
//									},
//									success : function(data) {
//										var flag = data.flag;
//										if (flag == 0) {
//											initButton(auditResult);
//											taskState = auditResult;
//											success("用例审核成功!");
//										} else {
//											danger(data.errorInfo);
//										}
//									},
//									error : function(err) {
//										var content = "服务器异常!";
//										danger(content);
//									}
//								});
//
//								baseCaseEditeBool = false;// 屏蔽复制粘贴快捷键
//							}
//						}, {
//							label : '取消',
//							action : function(dialogRef) {
//								dialogRef.close();
//								baseCaseEditeBool = false;// 屏蔽复制粘贴快捷键
//							}
//						} ]
//			});
}
// 展示用例基本信息
function showBaseCaseInfo(baseCaseData) {
//	if (taskState == 0) {
//
//		baseCaseEditeBool = false;// 屏蔽复制粘贴快捷键
//
//		BootstrapDialog.show({
//			title : '基本用例信息',
//			message : $(
//					"<form class='form-inline' style='height:300px'></form>")
//					.load('baseCaseAdd.html'),
//			onshown : function() {
//				baseMsgViewData(baseCaseData);
//			},
//			buttons : [ {
//				icon : 'glyphicon glyphicon-check',
//				label : '保存',
//				cssClass : 'btn-primary',
//				autospin : true,
//				action : function(dialogRef) {
//					var caseNum = $("#caseNum").val();
//					var caseContent = $("#caseContent").val();
//					// 判断描述是否为空
//					if (caseContent == "") {
//						warning("基本用例描述不能为空!");
//						return false;
//					}
//					// 判断描述过长
//					if (caseContent.length >= 250) {
//						warning("基本用例描述不能超过250个字符!");
//						return false;
//					}
//					// 判断基本用例编号是否为空
//					if (caseNum == "") {
//						warning("基本用例编号不能为空!");
//						return false;
//					}
//					// 判断基本用例编号过长
//					if (caseNum.length >= 20) {
//						warning("基本用例编号不能超过20个字符!");
//						return false;
//					}
//					$.ajax({
//						type : "POST",
//						url : "../../../basecase/editeBaseCase",
//						dataType : "json",
//						data : {
//							"id" : baseCaseData[0].ID,
//							"code" : $('#caseNum').val(),
//							"content" : $('#caseContent').val()
//						},
//						success : function(data) {
//							var flag = data.flag;
//							if (flag == 0) {
//								var content = "保存成功!";
//								success(content);
//								getBaseCaseByCaseId(baseCaseData[0].ID);
//							} else {
//								danger(data.errorInfo);
//							}
//						}
//					});
//					dialogRef.close();
//
//					baseCaseEditeBool = true;// 释放复制粘贴快捷键
//
//				}
//			}, {
//				label : '取消',
//				action : function(dialogRef) {
//					dialogRef.close();
//
//					baseCaseEditeBool = true;// 释放复制粘贴快捷键
//				}
//			} ]
//		});
//	} else {
//		BootstrapDialog.show({
//			title : '基本用例信息',
//			message : $(
//					"<form class='form-inline' style='height:300px'></form>")
//					.load('baseCaseAdd.html'),
//			onshown : function() {
//				baseMsgViewData(baseCaseData);
//			}
//		});
//	}
}

function baseMsgViewData(baseCaseData) {
	// 初始化各个值
	$("#caseType").append(
			"<option value='" + baseCaseData[0].TYPE + "'>"
					+ baseCaseData[0].TNAME + "</option>");
	$("#caseName").val(baseCaseData[0].NAME);
	$("#caseContent").val(baseCaseData[0].CONTENT);
	$("#caseNum").val(baseCaseData[0].CODE);
	$("#caseType")[0].disabled = true;
	$("#caseName")[0].disabled = true;
	if (taskState == 0) {
		$("#caseContent")[0].disabled = false;
		$("#caseNum")[0].disabled = false;
	} else {
		$("#caseContent")[0].disabled = true;
		$("#caseNum")[0].disabled = true;
	}
}
// 展示左侧用例元素信息
function showLeftElement() {
	elementData = [{"id":"D323A151A8AF4805894BB37A630C6A2A","name":"异常退出","code":"000000","type":"000","leve":"1","displayOrder":0,"description":"退出本基本用例。发生错误时，不再执行本基本用例的后续代码。","scriptContent":"return;","attributes":[],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"1","name":"速度变化","code":"001001","type":"001","leve":"1","displayOrder":0,"description":"设置目标速度值、加速度值、速度相位","scriptContent":"ASTS_SetSuDu(p1,p2,p3,p4);","attributes":[{"id":"331F1B8009DD4E59854598498067BAFE","code":"001001001","name":"速度","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"AD3997E483C543B8B8163F1D0D3FFC99","code":"001001002","name":"加速度","required":"0","type":"1","unit":"0.01km/h/s","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"1D1DE1CE17BD4366891D80B6100486DD","code":"001001003","name":"速度相位","required":"0","type":"3","unit":"°","value":"2","displayValue":"","defaultValue":"2","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"004"},{"id":"61D2D03BECD348DD9CF03CF8072E6114","code":"001001004","name":"智能变化","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":"067"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"F8150D3B415C4194A1AD4317698727D8","name":"初始化LKJ","code":"001000","type":"001","leve":"1","displayOrder":0,"description":"设定ASTS输出的特定信号，为LKJ提供纯净的初始化工作环境，以达到初始化基本用例工作环境的目的。","scriptContent":"ASTS_InitLKJCondition(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17,p18,p19,p20,p21,p22,p23,p24);","attributes":[{"id":"3ECE3C353AF94490BDE642E55112F5A5","code":"001001001","name":"速度","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"05335B70309D42DAB2269CA9638C9B49","code":"001000001","name":"总风缸压力","required":"0","type":"1","unit":"kpa","value":"900","displayValue":"","defaultValue":"900","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"C022D80F75184C84A6E871D906E8C194","code":"001000002","name":"列车管压力","required":"0","type":"1","unit":"kpa","value":"600","displayValue":"","defaultValue":"600","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"E43E0A8C4452434A9AA6EFD25743D266","code":"001000003","name":"制动缸压力","required":"0","type":"1","unit":"kpa","value":"0","displayValue":"","defaultValue":"0","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""},{"id":"F021C328C9804AA6997A757C3FC555CB","code":"001000004","name":"均缸1压力","required":"0","type":"1","unit":"kpa","value":"600","displayValue":"","defaultValue":"600","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"EFFAF4EE6FF44C3083787256854A781C","code":"001000005","name":"均缸2压力","required":"0","type":"1","unit":"kpa","value":"600","displayValue":"","defaultValue":"600","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""},{"id":"24A8091416374455935D83E244BF4D78","code":"006001007","name":"柴速","required":"0","type":"1","unit":"r/min","value":"800","displayValue":"","defaultValue":"800","displayOrder":7,"paramType":1,"paramOrder":7,"range":"","dict":""},{"id":"AEB8D5BB777E49FE903C04E1C12710EE","code":"004002002","name":"色灯信号","required":"0","type":"3","unit":"","value":"3","displayValue":"","defaultValue":"3","displayOrder":8,"paramType":1,"paramOrder":8,"range":"","dict":"023"},{"id":"69153A9101B14AC4BD2DDF321083B3F6","code":"001000006","name":"零位","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":9,"paramType":1,"paramOrder":9,"range":"","dict":"021"},{"id":"B6F3F0FC5E8E47F1B5752760C3794997","code":"003001003","name":"向前","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":10,"paramType":1,"paramOrder":10,"range":"","dict":"020"},{"id":"32351E3E18024377ABCFF6CBC1A32452","code":"003001004","name":"向后","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":11,"paramType":1,"paramOrder":11,"range":"","dict":"036"},{"id":"449434C2DEE14C67AE611E274F7E2F32","code":"003001005","name":"牵引","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":12,"paramType":1,"paramOrder":12,"range":"","dict":"005"},{"id":"F0D21E5391F5486C8356D576B81F8D2C","code":"003001006","name":"制动","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":13,"paramType":1,"paramOrder":13,"range":"","dict":"035"},{"id":"09C7D624A073488399688E3BB8A92364","code":"003001007","name":"II端警惕","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":14,"paramType":1,"paramOrder":14,"range":"","dict":"047"},{"id":"E40FF041795B4ED3AB620AF50C33A3F8","code":"003001008","name":"I端警惕","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":15,"paramType":1,"paramOrder":15,"range":"","dict":"040"},{"id":"7819434C53EA41D78C5064CE21668F57","code":"003001009","name":"车档","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":16,"paramType":1,"paramOrder":16,"range":"","dict":"047"},{"id":"505817ECEBAA4999A800D60224B22588","code":"003001010","name":"ATP控车","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":17,"paramType":1,"paramOrder":17,"range":"","dict":"030"},{"id":"302442A20A934286A2A6EE21174AFEA0","code":"003001011","name":"备用3","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":18,"paramType":1,"paramOrder":18,"range":"","dict":"047"},{"id":"2189CF8CD10242DEAFCB205F41FC45E3","code":"003001012","name":"备用4","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":19,"paramType":1,"paramOrder":19,"range":"","dict":"047"},{"id":"3BCA322B91B44777AD0FD0F5C47A472F","code":"003001013","name":"常1回采","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":20,"paramType":1,"paramOrder":20,"range":"","dict":"048"},{"id":"992CC3F25A8448BB9C5DFE88AE95E4C2","code":"003001014","name":"常4回采","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":21,"paramType":1,"paramOrder":21,"range":"","dict":"048"},{"id":"F06C50055B7C4D3E8ED90E4FCBA0EB6F","code":"003001015","name":"常7回采","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":22,"paramType":1,"paramOrder":22,"range":"","dict":"048"},{"id":"B4AE20B7A6BB49F697DB7B52B7CE728D","code":"003001016","name":"得紧回读","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":23,"paramType":1,"paramOrder":23,"range":"","dict":"048"},{"id":"09B906EF811742EEA6A4C04ED7A475F0","code":"003001017","name":"失紧回读","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":24,"paramType":1,"paramOrder":24,"range":"","dict":"048"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"2","name":"目标速度","code":"001002","type":"001","leve":"1","displayOrder":0,"description":"根据限速设定速度，控制LKJ运行至目标点位置。到目标点后，设定预置速度。","scriptContent":"ASTS_SetTargetSuDu(p1,p2,p3,p4,p5,p6,p7);","attributes":[{"id":"E8C31A2542614A36AC7E3FEE06613E2F","code":"001002001","name":"车站名称","required":"1","type":"6","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"CZMC"},{"id":"130D81B0346D44E5B0754FC05946BB94","code":"001002002","name":"信号机类型","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"027"},{"id":"3EA9DD13C37544FCAAC36DC54ACC99AD","code":"001002003","name":"信号机编号","required":"1","type":"2","unit":"","value":"","displayValue":"","defaultValue":"","displayOrder":3,"paramType":3,"paramOrder":3,"range":"","dict":""},{"id":"CFE8E2B1F6064C8FAC74EA613604006E","code":"001002004","name":"目标点里程","required":"1","type":"1","unit":"m","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""},{"id":"D81E62E78F3246EE9756019168E3E692","code":"001002005","name":"目标点距离","required":"0","type":"1","unit":"m","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"812A86A0064340098C81DF8E1DD3AEF6","code":"001003006","name":"限速差值","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""},{"id":"1300B49437164CBFBEA68C5E4F54239B","code":"001002006","name":"目标点速度","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":7,"paramType":1,"paramOrder":7,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"4","name":"通道速度","code":"001004","type":"001","leve":"1","displayOrder":0,"description":"分别设置9路速度值，可分别设置4组速度相位（90度或270度）","scriptContent":"ASTS_SetTongDaoSuDu(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13);","attributes":[{"id":"9CE812CA769F4623BC01FAA0C267E872","code":"001004001","name":"I系速度1","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"B8A63BDBB1634D3EA84F055A9527B360","code":"001004002","name":"I系速度2","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"42C437762D32448AB8DFEF10E673DD56","code":"001004003","name":"I系速度3","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"4BD1B44126244670A7E108B44B0F184D","code":"001004004","name":"I系速度4","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""},{"id":"A900584F1F584380A174253E3239F389","code":"001004005","name":"II系速度1","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"D0A5660B38204383A9187FC01A091DE6","code":"001004006","name":"II系速度2","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""},{"id":"6883F33029974A96A2BDA3F056D0391F","code":"001004007","name":"II系速度3","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":7,"paramType":1,"paramOrder":7,"range":"","dict":""},{"id":"BDCB7A626A684AF3A44A82366D57BA32","code":"001004008","name":"II系速度4","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":8,"paramType":1,"paramOrder":8,"range":"","dict":""},{"id":"60BAE2DB339D4543B9A873A119DF079A","code":"001004009","name":"备用速度","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":9,"paramType":1,"paramOrder":9,"range":"","dict":""},{"id":"422813DD76CB4C8B8AFC320CA37C44FC","code":"001004010","name":"I系相位1","required":"0","type":"3","unit":"°","value":"2","displayValue":"","defaultValue":"2","displayOrder":10,"paramType":1,"paramOrder":10,"range":"","dict":"004"},{"id":"C0BDD8CDECDA4072837E96BEED14F410","code":"001004011","name":"I系相位2","required":"0","type":"3","unit":"°","value":"2","displayValue":"","defaultValue":"2","displayOrder":11,"paramType":1,"paramOrder":11,"range":"","dict":"004"},{"id":"4950105C290D4C65B00BD604155FAAE5","code":"001004012","name":"II系相位3","required":"0","type":"3","unit":"°","value":"2","displayValue":"","defaultValue":"2","displayOrder":12,"paramType":1,"paramOrder":12,"range":"","dict":"004"},{"id":"FAD444910D804C8E9608FBE035B54F1D","code":"001004013","name":"II系相位4","required":"0","type":"3","unit":"°","value":"2","displayValue":"","defaultValue":"2","displayOrder":13,"paramType":1,"paramOrder":13,"range":"","dict":"004"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"4BB25D2060A2445EA1E1629E02C94CF7","name":"界限值检测","code":"001005","type":"001","leve":"1","displayOrder":0,"description":"判定报警、卸载、常用、紧急四种状态对应的速度值是否正确，速度为零时无报警，给出判定结果。","scriptContent":"ASTS_LimitValueDetection(p1,p2);","attributes":[{"id":"0D18532EDE544422865281BFB14F3414","code":"001005001","name":"界限值","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"C54DA60C9002473697CB28ABE8408A90","code":"001005002","name":"期待动作","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"068"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"F8EF7FA4A7A141669F1FC600A091251B","name":"位移判断","code":"001006","type":"001","leve":"1","displayOrder":0,"description":"为验证“手柄防溜”等业务功能，判断机车的位移是否达到预期值","scriptContent":"ASTS_Move(p1,p2);","attributes":[{"id":"36A5C18DB8914E43B6C0764A58533001","code":"011001002","name":"超时时间","required":"0","type":"1","unit":"S","value":"1800","displayValue":"","defaultValue":"1800","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"1EA852D4BE284A7A8CC9FE4024E270B5","code":"001006002","name":"位移距离","required":"0","type":"1","unit":"米","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"D451E5F0C64E419885500B8281482E7A","name":"宕机允许","code":"001007","type":"001","leve":"1","displayOrder":0,"description":"脚本执行中，应持续检测LKJ状态，对宕机进行处理。当LKJ出现非预期的宕机时，脚本应记录宕机结果，退出执行。本控件用于设定是否允许LKJ出现宕机。","scriptContent":"ASTS_SetLKJDownEnabled(p1);","attributes":[{"id":"1580135A94864218892A99FFC4D44134","code":"001007001","name":"是否允许宕机","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"074"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"16","name":"柴速原边","code":"006001","type":"001","leve":"1","displayOrder":0,"description":"设置柴速值、原边电压、原边电流值。","scriptContent":"ASTS_SetChaiSu(p1,p2,p3,p4,p5,p6);","attributes":[{"id":"997A59E5F2A44E1699BB5C0F06C8F46E","code":"006001001","name":"I系柴速","required":"0","type":"1","unit":"r/min","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"267C0F91FACD41D1999FAE218F348258","code":"006001002","name":"I系原边电压","required":"0","type":"1","unit":"V","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"E995D3A3C2084B3E9AB1F12032458EF8","code":"006001003","name":"I系原边电流","required":"0","type":"1","unit":"A","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"D74F69EC25814493A45CB74B45336B2F","code":"006001004","name":"II系柴速","required":"0","type":"1","unit":"r/min","value":"0","displayValue":"","defaultValue":"0","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""},{"id":"22D298786470458694D8EA9D4136572B","code":"006001005","name":"II系原边电压","required":"0","type":"1","unit":"V","value":"0","displayValue":"","defaultValue":"0","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"D62E4846471F4684AEEB476BF6AEFE8F","code":"006001006","name":"II系原边电流","required":"0","type":"1","unit":"A","value":"0","displayValue":"","defaultValue":"0","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"002006","name":"设置压力","code":"002006","type":"002","leve":"1","displayOrder":0,"description":"设定各个风缸压力","scriptContent":"ASTS_SetAllGuanYa(p1,p2,p3,p4,p5,p6);","attributes":[{"id":"84AC8A13A42047458CE398ED4681FDB5","code":"002006001","name":"压力1（列车管）","required":"0","type":"1","unit":"kPa","value":"600","displayValue":"","defaultValue":"600","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"208E036AA03045CFA3D1D446ECF7BE7A","code":"002006002","name":"压力2（制动缸）","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"5838D06483124615AD133FE70A6EC569","code":"002006003","name":"压力3（均缸1）","required":"0","type":"1","unit":"kPa","value":"600","displayValue":"","defaultValue":"600","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"62189653F92F4CF883FB86148673D963","code":"002006004","name":"压力4（均缸2）","required":"0","type":"1","unit":"kPa","value":"600","displayValue":"","defaultValue":"600","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""},{"id":"2A2A3B1F596E4D61A1BC982E2EDC6BFB","code":"002006005","name":"压力5（总风缸）","required":"0","type":"1","unit":"kPa","value":"600","displayValue":"","defaultValue":"600","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"9DE5F2EB5C0A4583840318E4174E11ED","code":"002006006","name":"压力6（备用）","required":"0","type":"1","unit":"kPa","value":"600","displayValue":"","defaultValue":"600","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"5","name":"总风缸压力","code":"002001","type":"002","leve":"1","displayOrder":0,"description":"设定总风缸压力","scriptContent":"ASTS_SetZongGangYa(p1,p2,p3);","attributes":[{"id":"E3BF976D7658408E9D2CA861A6967250","code":"002001001","name":"I系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"6C0F6DCBC1544333AE24EBB9CA64E4F5","code":"002001002","name":"II系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"516DD73E54AA46BFA8722B9CB9B1F706","code":"002001003","name":"压力变化速率","required":"0","type":"1","unit":"kPa/s","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"7","name":"制动缸压力","code":"002003","type":"002","leve":"1","displayOrder":0,"description":"设定制动缸压力","scriptContent":"ASTS_SetZhiDongGangYa(p1,p2,p3);","attributes":[{"id":"142003F12C474EB19651B9E25A5C399D","code":"002001001","name":"I系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"08CA0A1417DB4B53A6FDDEDB5CD95C35","code":"002001002","name":"II系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"1DB5627C82614CF1B5689B0C409ECC6A","code":"002001003","name":"压力变化速率","required":"0","type":"1","unit":"kPa/s","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"6","name":"列车管压力","code":"002002","type":"002","leve":"1","displayOrder":0,"description":"设定列车管压力","scriptContent":"ASTS_SetLieCheGuanYa(p1,p2,p3);","attributes":[{"id":"122CB9025056401BAE106B6035DF016C","code":"002001001","name":"I系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"5C15055434C24C7F8FF072673A4D04FC","code":"002001002","name":"II系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"B503698E2765473CB2666043AC0D3261","code":"002001003","name":"压力变化速率","required":"0","type":"1","unit":"kPa/s","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"9","name":"均缸1压力","code":"002005","type":"002","leve":"1","displayOrder":0,"description":"设定均缸1压力","scriptContent":"ASTS_SetJun1GangYa(p1,p2,p3);","attributes":[{"id":"9B4894EF6E3744FF89AFFE5846D741CA","code":"002001001","name":"I系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"5BF304100EA549989C16CEAEB7DB4EEE","code":"002001002","name":"II系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"262CD02566CE4B63A8858477AD744E2A","code":"002001003","name":"压力变化速率","required":"0","type":"1","unit":"kPa/s","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"8","name":"均缸2压力","code":"002004","type":"002","leve":"1","displayOrder":0,"description":"设定均缸2压力","scriptContent":"ASTS_SetJun2GangYa(p1,p2,p3);","attributes":[{"id":"9CD43AB742DC48E0B15164F3841BCD77","code":"002001001","name":"I系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"F759EB9736D94450AE8A450A38A1F6CE","code":"002001002","name":"II系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"6DB13F48CEE64FB181A2478903025497","code":"002001003","name":"压力变化速率","required":"0","type":"1","unit":"kPa/s","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"10","name":"工况","code":"003001","type":"003","leve":"1","displayOrder":0,"description":"设定工况输出信号","scriptContent":"ASTS_SetGongKuang(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17);","attributes":[{"id":"A51C405D18F04F718D300BF28DECF158","code":"003001001","name":"系别","required":"0","type":"3","unit":"","value":"3","displayValue":"","defaultValue":"3","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"032"},{"id":"221118F52F91480E8852CDAE690BDC07","code":"003001002","name":"零位","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"021"},{"id":"E8797BD76176499BB1A73CE93AC33DF9","code":"003001003","name":"向前","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"020"},{"id":"B400D61DDEB04649ACC06025678E2003","code":"003001004","name":"向后","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":"036"},{"id":"FABC6422410F435FACBC6BB53FBE2B5C","code":"003001005","name":"牵引","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":"005"},{"id":"869CEEDE0E5B4EE9AF6DAA3DA8BA21ED","code":"003001006","name":"制动","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":"035"},{"id":"0C2B39357AB54228A08903E81D5E7A01","code":"003001007","name":"II端警惕","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":7,"paramType":1,"paramOrder":7,"range":"","dict":"047"},{"id":"174D6544C91049DEB23BCCB1205CAD65","code":"003001008","name":"I端警惕","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":8,"paramType":1,"paramOrder":8,"range":"","dict":"040"},{"id":"78E95C8817C146C58E313D268CEC3F9F","code":"003001009","name":"车档","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":9,"paramType":1,"paramOrder":9,"range":"","dict":"047"},{"id":"94A0149E902F4F5690C077DB7C861774","code":"003001010","name":"ATP控车","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":10,"paramType":1,"paramOrder":10,"range":"","dict":"030"},{"id":"698CA466E63644BBB94635F0BEDD6DE3","code":"003001011","name":"备用3","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":11,"paramType":1,"paramOrder":11,"range":"","dict":"047"},{"id":"EB5BFA27E7694D149D92F5E9FB037A82","code":"003001012","name":"备用4","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":12,"paramType":1,"paramOrder":12,"range":"","dict":"047"},{"id":"407F5058152047298123878CC43FA687","code":"003001013","name":"常1回采","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":13,"paramType":1,"paramOrder":13,"range":"","dict":"048"},{"id":"5BDBED093EA54F5DAA67CB20E1E8C9DF","code":"003001014","name":"常4回采","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":14,"paramType":1,"paramOrder":14,"range":"","dict":"048"},{"id":"3018EDD8F2B94F73BA84D240086082F7","code":"003001015","name":"常7回采","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":15,"paramType":1,"paramOrder":15,"range":"","dict":"048"},{"id":"706493F843414FC88AD5F81B9C589C26","code":"003001016","name":"得紧回读","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":16,"paramType":1,"paramOrder":16,"range":"","dict":"048"},{"id":"3DFD94C6F1824E4FA03E467699C3F3BB","code":"003001017","name":"失紧回读","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":17,"paramType":1,"paramOrder":17,"range":"","dict":"048"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"11","name":"开关量输入","code":"003002","type":"003","leve":"1","displayOrder":0,"description":"设定其他开关量输入信号","scriptContent":"ASTS_SetKaiGuanLiang(p1,p2,p3,p4,p5,p6,p7);","attributes":[{"id":"21471C318ED64DE4A3966E8157CC7B61","code":"003002001","name":"I端警惕时长","required":"0","type":"1","unit":"0.1s","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"8B5AE65AE24D45F38FF7E35C73D74475","code":"003002002","name":"II端警惕时长","required":"0","type":"1","unit":"0.1s","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"D6BEED20F3714C2897AB22C467BD4240","code":"003002003","name":"土档时长","required":"0","type":"1","unit":"0.1s","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"5E60CED9B06D47A59787AFCF7E8FD484","code":"003002004","name":"I端鸣笛信号","required":"0","type":"1","unit":"0.1s","value":"0","displayValue":"","defaultValue":"0","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""},{"id":"C6FDFEF6D9164B1784EA4BB14E15D07E","code":"003002005","name":"II端鸣笛信号","required":"0","type":"1","unit":"0.1s","value":"0","displayValue":"","defaultValue":"0","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"730B8E06948D45B2A261B07AF36AEFF3","code":"003002006","name":"手动主断时长","required":"0","type":"1","unit":"0.1s","value":"0","displayValue":"","defaultValue":"0","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""},{"id":"FC0B8C9A5A1C438D8DEC37AE16B2B715","code":"003002007","name":"自动主断时长","required":"0","type":"1","unit":"0.1s","value":"0","displayValue":"","defaultValue":"0","displayOrder":7,"paramType":1,"paramOrder":7,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"12","name":"JTC信号","code":"004002","type":"004","leve":"1","displayOrder":0,"description":"设定机车信号输入","scriptContent":"ASTS_SetJtcXinHao(p1,p2,p3);","attributes":[{"id":"0D1B16DE76C5495999E270382D04C531","code":"004002001","name":"总线类型","required":"0","type":"3","unit":"","value":"2","displayValue":"","defaultValue":"2","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"022"},{"id":"54752DD9CF3647ABA003C168A9ED5F12","code":"004002002","name":"色灯信号","required":"0","type":"3","unit":"","value":"3","displayValue":"","defaultValue":"3","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"023"},{"id":"47D640E4C7074A1EA8F6FFFB23375F49","code":"004002003","name":"信号输出","required":"0","type":"3","unit":"","value":"3","displayValue":"","defaultValue":"3","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"060"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"13","name":"ATP信号","code":"004003","type":"004","leve":"1","displayOrder":0,"description":"设定ATP信号输入","scriptContent":"ASTS_SetAtpXinHao(p1,p2);","attributes":[{"id":"D98CD284D71342E6B8F72617FA5660FC","code":"004003001","name":"I系ATP信号","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"031"},{"id":"392990D87D2543A28B02709D58E6B310","code":"004003002","name":"II系ATP信号","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"031"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"14","name":"平调信号","code":"004004","type":"004","leve":"1","displayOrder":0,"description":"设定平调信号输入","scriptContent":"ASTS_SetPingDiaoXinHao(p1,p2);","attributes":[{"id":"2C774C13F55042AA802B7154703F51C1","code":"004004001","name":"平调信号","required":"0","type":"3","unit":"","value":"15","displayValue":"","defaultValue":"15","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"011"},{"id":"BE4DC64AB59D4D56BAE0AEC3CC7F6C1D","code":"004004002","name":"信号输出","required":"0","type":"3","unit":"","value":"3","displayValue":"","defaultValue":"3","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"060"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"15","name":"绝缘节","code":"005001","type":"004","leve":"1","displayOrder":0,"description":"设定绝缘节数据输入","scriptContent":"ASTS_SetJueYuanJie(p1,p2,p3,p4);","attributes":[{"id":"C5A07DA0553C49A9AE09788CF3E4780A","code":"005001001","name":"信号制式","required":"0","type":"3","unit":"","value":"7","displayValue":"","defaultValue":"7","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"012"},{"id":"21653C58E0C54649B124E548031FCB30","code":"005001004","name":"上下行","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"014"},{"id":"FFB253A058084D249530D7E63868F403","code":"005001003","name":"出口电平","required":"0","type":"1","unit":"V","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"8F9D17B2E6724128860A8EF3064B9034","code":"005001002","name":"过机信号","required":"0","type":"3","unit":"","value":"2","displayValue":"","defaultValue":"2","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":"024"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"17","name":"DMI按键","code":"007001","type":"007","leve":"1","displayOrder":0,"description":"设定按键输入代码","scriptContent":"ASTS_SendKeyToDMI(p1,p2,p3,p4);","attributes":[{"id":"D827149E92E748B9A6BF0974BE65B7D1","code":"007001004","name":"触摸屏按键","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"033"},{"id":"753A84AA5EF344E385ABC28A61877EA6","code":"007001003","name":"按键代码","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"034"},{"id":"DD66DC27BFC64077A6BAE33BD04A6EF5","code":"007001001","name":"按键位置X","required":"0","type":"1","unit":"px","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"93D132585E6D4B77B5B172D4EA7DFCAF","code":"007001002","name":"按键位置Y","required":"0","type":"1","unit":"px","value":"0","displayValue":"","defaultValue":"0","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"010002","name":"校时","code":"010002","type":"007","leve":"1","displayOrder":0,"description":"校正LKJ时间,当参数=-1时，用测控单元本机时间校正LKJ时间，年月日、时分秒、毫秒；参数=其他值时，用参数值设定LKJ时间","scriptContent":"ASTS_SetLKJDateTime(p1);","attributes":[{"id":"5125818F78134CE3BA42A4E267983BB4","code":"010002001","name":"时间","required":"0","type":"5","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":1,"paramType":3,"paramOrder":1,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"28","name":"编组设定","code":"007005","type":"007","leve":"1","displayOrder":0,"description":"设定司机发车时的编组参数","scriptContent":"ASTS_SetBianZuCanShu(p1,p2,p3,p4,p5,p6,p7);","attributes":[{"id":"FE3A61DB56294ABE8107B54F95E3E624","code":"007005001","name":"载重","required":"0","type":"1","unit":"t","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"C9B5D2100ACA454EB3FA5B2EBB711446","code":"007005002","name":"客车","required":"0","type":"1","unit":"节","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"85AED33BED0E4CA382AAEE5DC2D6AA93","code":"007005003","name":"重车","required":"0","type":"1","unit":"节","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"8C6DB927947641E79476BBCB7FB7A7B5","code":"007005004","name":"空车","required":"0","type":"1","unit":"节","value":"0","displayValue":"","defaultValue":"0","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""},{"id":"AC6F9CA339E84E66A32AFCC58F3915A4","code":"007005005","name":"非运客车","required":"0","type":"1","unit":"节","value":"0","displayValue":"","defaultValue":"0","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"272C251575594BD6847B0CFDABF1CA6E","code":"007005006","name":"代客车","required":"0","type":"1","unit":"节","value":"0","displayValue":"","defaultValue":"0","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""},{"id":"7A852D4F80D54028B182CA0C9B7E386E","code":"007005007","name":"守车","required":"0","type":"1","unit":"节","value":"0","displayValue":"","defaultValue":"0","displayOrder":7,"paramType":1,"paramOrder":7,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"29","name":"检修设定","code":"007006","type":"007","leve":"1","displayOrder":0,"description":"设定检修参数","scriptContent":"ASTS_SetJianXiuCanShu(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10);","attributes":[{"id":"2304F3E66772487FB5FB2142A8D33B8C","code":"007006001","name":"配属段号","required":"0","type":"1","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"1FD58A911C2042F18DE4C9FDCD9530A5","code":"007006002","name":"机车型号","required":"0","type":"3","unit":"","value":"138","displayValue":"","defaultValue":"138","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"101"},{"id":"1D15C1B434A14EF7B7E5759E3C93547C","code":"007006004","name":"机车号","required":"0","type":"1","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""},{"id":"F97247C1B52D4E8DB523805F0A224858","code":"007006005","name":"轮径1","required":"0","type":"1","unit":"0.1mm","value":"0","displayValue":"","defaultValue":"0","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"C5364F50C38D4C3BABE17D7C582DF2CC","code":"007006006","name":"轮径2","required":"0","type":"1","unit":"0.1mm","value":"0","displayValue":"","defaultValue":"0","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""},{"id":"0E65AB4B589B4AF28BD54E5A4C360F77","code":"007006007","name":"柴油机脉冲","required":"0","type":"1","unit":"个","value":"0","displayValue":"","defaultValue":"0","displayOrder":7,"paramType":1,"paramOrder":7,"range":"","dict":""},{"id":"86B80AEDBFC64F65A37557D0D27C9F0B","code":"007006008","name":"双针表量程","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":8,"paramType":1,"paramOrder":8,"range":"","dict":""},{"id":"571800475C0943BAAE5EEE62446F60D7","code":"007006009","name":"BTM距I端距离","required":"0","type":"1","unit":"m","value":"0","displayValue":"","defaultValue":"0","displayOrder":9,"paramType":1,"paramOrder":9,"range":"","dict":""},{"id":"CEBF86AF89BB4CE3AFF08DEEA5BEBB0C","code":"007006010","name":"GPS距I端距离","required":"0","type":"1","unit":"m","value":"0","displayValue":"","defaultValue":"0","displayOrder":10,"paramType":1,"paramOrder":10,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"20","name":"发车设定","code":"007004","type":"007","leve":"1","displayOrder":0,"description":"设定司机发车参数","scriptContent":"ASTS_SetKaiCheCanShu(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17,p18,p19,p20,p21,p22);","attributes":[{"id":"EFD940771260436AB05DB800518E4A16","code":"007004001","name":"司机号1","required":"0","type":"1","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"9689721F01E34F529A86BD90CB91052E","code":"007004002","name":"司机号2","required":"0","type":"1","unit":"","value":"2","displayValue":"","defaultValue":"2","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"6266C89A0C794235B0C9D02A5A298542","code":"007004006","name":"总重","required":"0","type":"1","unit":"t","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":7,"range":"","dict":""},{"id":"A63B062AF4E94D7A8F42248506C511DF","code":"007004007","name":"辆数","required":"0","type":"1","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":4,"paramType":1,"paramOrder":8,"range":"","dict":""},{"id":"628B84F6B7824F28BAA421DD3ED71EB2","code":"007004008","name":"计长","required":"0","type":"1","unit":"0.1","value":"0","displayValue":"","defaultValue":"0","displayOrder":5,"paramType":1,"paramOrder":9,"range":"","dict":""},{"id":"9B30C6B296064B999B45C45ADF85A137","code":"007004004","name":"车种标识","required":"1","type":"6","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":6,"paramType":3,"paramOrder":5,"range":"","dict":"CZBS"},{"id":"869F032A90E5420AAF485EAF79FF914D","code":"007004003","name":"列车类型","required":"1","type":"6","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":7,"paramType":3,"paramOrder":3,"range":"","dict":"LCLX"},{"id":"AB99FFE1CB004B1684F5BBAE0DC1BB9F","code":"007004016","name":"列车标志","required":"1","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":8,"paramType":1,"paramOrder":4,"range":"","dict":"054"},{"id":"ECD0ACF5DB0C4E479B9D47C6330030C3","code":"007004005","name":"车次号码","required":"1","type":"1","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":9,"paramType":1,"paramOrder":6,"range":"","dict":""},{"id":"55F5FE5815A94FFF902AF865A5F8869A","code":"007004009","name":"车速等级","required":"1","type":"1","unit":"","value":"120","displayValue":"","defaultValue":"120","displayOrder":10,"paramType":1,"paramOrder":10,"range":"","dict":""},{"id":"B3B03E8A1A404E85BD2CD28DDD18F9CD","code":"007004010","name":"起始站名","required":"1","type":"6","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":11,"paramType":1,"paramOrder":11,"range":"","dict":"QSZM"},{"id":"3993E599EBB44611A1267A6D379DA680","code":"007004011","name":"站场名","required":"1","type":"6","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":12,"paramType":3,"paramOrder":18,"range":"","dict":"ZCM"},{"id":"C9C74DCC6F33401BBC4C6C04479B675D","code":"007004012","name":"发车股道","required":"1","type":"1","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":13,"paramType":1,"paramOrder":17,"range":"","dict":""},{"id":"BE5AA1658A7C49138FF4916DEE7C85B1","code":"007004013","name":"发车方向","required":"1","type":"6","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":14,"paramType":1,"paramOrder":15,"range":"","dict":"FCFX"},{"id":"246EAB62425742ADB2DE6F7311F0F2E9","code":"007004014","name":"终止站名","required":"1","type":"6","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":15,"paramType":1,"paramOrder":13,"range":"","dict":"ZZZM"},{"id":"496C4C720EBB4426A6BF28D394A1086E","code":"007004015","name":"运行径路","required":"1","type":"6","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":16,"paramType":1,"paramOrder":19,"range":"","dict":"YXJL"},{"id":"0BDA0107E8654267BB80BC55EC70B590","code":"007004017","name":"对标位置类型","required":"1","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":17,"paramType":1,"paramOrder":21,"range":"","dict":"069"},{"id":"21E3B9CA3DD14A60BCA6592B2A61085F","code":"007004018","name":"对标位置","required":"1","type":"2","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":18,"paramType":3,"paramOrder":22,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"19","name":"BTM输入","code":"007003","type":"007","leve":"1","displayOrder":0,"description":"设定应答器数据信息","scriptContent":"ASTS_SetBTMInput(p1,p2,p3,p4);","attributes":[{"id":"6F58871B9B33492CA5D4050B9DFFE426","code":"007003001","name":"BTM数据","required":"1","type":"3","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":1,"paramType":3,"paramOrder":1,"range":"","dict":"BTM"},{"id":"0A7E2F0D16F94A38B4119A40B4DD7AB9","code":"007003002","name":"厂家标志","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"037"},{"id":"176CDDDD744548BA90F790BEBC81A4C3","code":"007003003","name":"错误标志","required":"1","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"041"},{"id":"6841334E4030415FBF5B7BBA5C0473EA","code":"007003004","name":"开关","required":"1","type":"3","unit":"","value":"2","displayValue":"","defaultValue":"2","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":"026"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"18","name":"IC卡输入","code":"007002","type":"007","leve":"1","displayOrder":0,"description":"设定IC卡输入信息","scriptContent":"ASTS_SetIcInput(p1);","attributes":[{"id":"772BC3A224A94EF08439CA9A275710EF","code":"007002001","name":"IC卡数据","required":"1","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":3,"paramOrder":1,"range":"","dict":"JSSJ"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"007007","name":"模式切换","code":"007007","type":"007","leve":"1","displayOrder":0,"description":"切换LKJ的工作模式","scriptContent":"ASTS_SetLKJWorkingMode(p1);","attributes":[{"id":"124169C59DD94897A6E29FDCE92992E3","code":"007007001","name":"工作模式","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"042"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"007008","name":"隔离开关","code":"007008","type":"007","leve":"1","displayOrder":0,"description":"设定送给隔离插件的隔离开关转换信号","scriptContent":"ASTS_SetGeLiKaiGuan(p1);","attributes":[{"id":"F7D7AC5EF1894014BF6E6496716E053E","code":"007008001","name":"隔离开关位置","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"029"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"0D7B7DB9FEBC4D5493498D82235B8F85","name":"特殊行车","code":"007009","type":"007","leve":"1","displayOrder":0,"description":"设定特殊行车信息给主控单元。","scriptContent":"ASTS_SetTeShuXingChe(p1,p2,p3);","attributes":[{"id":"8D2BA8CEC21D4EA599E534BC3F7C941C","code":"007009001","name":"特殊行车类型","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"061"},{"id":"C2661E3B7ADD4A59B20E2D3A84CFC706","code":"007009002","name":"凭证信息","required":"1","type":"1","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"90B9F1A00BF7435AA3E1D1142E41547F","code":"007009003","name":"调度命令号","required":"1","type":"1","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"82FC2B06AE8540D1A0FA16106F110750","name":"功能按键","code":"007010","type":"007","leve":"1","displayOrder":0,"description":"发送功能按键给主控单元。","scriptContent":"ASTS_SetFuncKeyToZhuKong(p1);","attributes":[{"id":"FC80B6B535A84D88B5EA514FCC0D2AC5","code":"007010001","name":"按键代码","required":"0","type":"3","unit":"","value":"0x01","displayValue":"","defaultValue":"0x01","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"062"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"F1FFCDB3CB834963A81600BBFAAAD7EB","name":"输入股道号","code":"007011","type":"007","leve":"1","displayOrder":0,"description":"设定股道号给主控单元。","scriptContent":"ASTS_SetGuDaoHao(p1,p2);","attributes":[{"id":"472C83FE7D11495A8B534BEB24A0CBBA","code":"007011001","name":"本分区股道号","required":"0","type":"1","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"8E344843FDF34BF59ED5DABB5B36C1F6","code":"007011002","name":"下一分区股道号","required":"0","type":"1","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"33CC2161B9A44EEB821C817768386E26","name":"输入支线号","code":"007012","type":"007","leve":"1","displayOrder":0,"description":"设定支线号给主控单元。","scriptContent":"ASTS_SetZhiXianHao(p1,p2);","attributes":[{"id":"D5EC568789074B50BDC0C3AAF3AF25A6","code":"007012001","name":"本分区支线号","required":"0","type":"1","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"F12A2523567549D79B0297801B7DABBF","code":"007012002","name":"下一分区支线号","required":"0","type":"1","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"C63087AF98A746E5B9D44C75507F3A33","name":"区段类型","code":"007013","type":"007","leve":"1","displayOrder":0,"description":"设定区段类型，发送给主控单元。","scriptContent":"ASTS_SetQuDuanLeiXing(p1);","attributes":[{"id":"13C3734A37034C3995B32A577E9DF5D3","code":"007013001","name":"区段类型","required":"0","type":"3","unit":"","value":"0x01","displayValue":"","defaultValue":"0x01","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"063"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"E2CF693FA7BA4654B890840EF6758547","name":"制动试验","code":"007014","type":"007","leve":"1","displayOrder":0,"description":"发送制动试验控制命令给主控单元。","scriptContent":"ASTS_SetZhiDongShiYan(p1,p2);","attributes":[{"id":"674F6E29893F46B58438DC29ED995399","code":"007014001","name":"制动试验动作","required":"0","type":"3","unit":"","value":"0x31","displayValue":"","defaultValue":"0x31","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"064"},{"id":"78EA430FD957459FAB056C1056DAA266","code":"007014002","name":"系别","required":"0","type":"3","unit":"","value":"0x66","displayValue":"","defaultValue":"0x66","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"065"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"5A548E83077745CDA9BC764A8B8F83B6","name":"双针表试验","code":"007015","type":"007","leve":"1","displayOrder":0,"description":"发送双针表试验控制命令给主控单元。","scriptContent":"ASTS_SetShuangZhenBiaoShiYan(p1);","attributes":[{"id":"C2AD1BE8541347BAB3B807E99FD28016","code":"007015001","name":"双针表试验动作","required":"0","type":"3","unit":"","value":"0x02","displayValue":"","defaultValue":"0x02","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"066"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"42A8C2880CD7478187C3DDC7542F9BC6","name":"LKJ换装","code":"007016","type":"007","leve":"1","displayOrder":0,"description":"根据参数中的换装文件类型和ID，检查LKJ-15S 的软件或数据版本。与LKJ数据总线上广播的版本进行比对，若发现不同则自动启动换装过程，如果版本相同则不进行任何操作。","scriptContent":"ASTS_LKJ_HuanZhuang(p1,p2);","attributes":[{"id":"0549225BFD004A27AF3D36456387D8E7","code":"007016002","name":"软件类型","required":"0","type":"3","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":1,"paramType":3,"paramOrder":2,"range":"","dict":"072"},{"id":"0396A190E0CA42F99595B9D93995006D","code":"007016001","name":"文件名称","required":"0","type":"6","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":2,"paramType":3,"paramOrder":1,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"328CD7928E004D89B1A1FC2257F9FB06","name":"初始化ASTS","code":"007017","type":"007","leve":"1","displayOrder":0,"description":"初始化ASTS工作环境，让LKJ、ASTS信号调理单元、仿真控制软件都恢复到初始状态。","scriptContent":"ASTS_InitASTSDevice(p1);","attributes":[{"id":"D1BD9CEB899244878B49F5C3F9A3F5C3","code":"007017001","name":"初始化类型","required":"0","type":"1","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"21","name":"其他文件类","code":"008001","type":"008","leve":"1","displayOrder":0,"description":"设定其他文件类输入数据信息","scriptContent":"ASTS_SetDeviceInput(p1,p2);","attributes":[{"id":"2C5690FBAA0C42A4B5316A9D09924C5F","code":"000000072","name":"数据文件ID","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":1,"paramType":3,"paramOrder":1,"range":"","dict":"SJWJ"},{"id":"5098A7055DDA44638FC622E34FD424D0","code":"000000073","name":"发送开关","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"026"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"30","name":"LAIS接口检查","code":"008002","type":"008","leve":"1","displayOrder":0,"description":"检查LAIS通信是否正常","scriptContent":"ASTS_SetCheckLAISInterface(p1);","attributes":[{"id":"F3FFBE7899C440E9BF0F8843535A921D","code":"008001001","name":"检查开始持续时间","required":"0","type":"1","unit":"S","value":"5","displayValue":"","defaultValue":"5","displayOrder":10,"paramType":1,"paramOrder":10,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"31","name":"CMD接口检查","code":"008003","type":"008","leve":"1","displayOrder":0,"description":"检查CMD通信是否正常","scriptContent":"ASTS_SetCheckCMDInterface(p1);","attributes":[{"id":"BBE4F6DEE32940559889A19DF3745854","code":"008002001","name":"检查开始持续时间","required":"0","type":"1","unit":"S","value":"5","displayValue":"","defaultValue":"5","displayOrder":10,"paramType":1,"paramOrder":10,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"010010","name":"写入观察值","code":"010010","type":"010","leve":"1","displayOrder":0,"description":"写入观察值","scriptContent":"ASTS_WriteSpyValue(p1,ASTS_GetLKJFlag(p2,p3));","attributes":[{"id":"F57DA6B538BD4D41B01B29DB3F9D3E30","code":"010010001","name":"注释","required":"0","type":"2","unit":"","value":"空","displayValue":"","defaultValue":"空","displayOrder":1,"paramType":3,"paramOrder":1,"range":"","dict":""},{"id":"2E259142516742D1B90E27B45B933593","code":"009001002","name":"系模标志","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"052"},{"id":"FA2217C9BDEC4B2FA9BC172CB27DA4D8","code":"009001003","name":"数据项","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"050"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"8F88CF2E98CA45E291236DDEC331042F","name":"ASTS电源控制","code":"010003","type":"010","leve":"1","displayOrder":0,"description":"分别控制主机、DMI、扩展单元、调理单元的电源。\n=0 断电\n=1 上电\n=-1 不改变状态","scriptContent":"ASTS_DevicePowerControl(p1,p2,p3,p4);","attributes":[{"id":"03EE785D3D4F410EB38DAD6245219F34","code":"010003001","name":"主机","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"057"},{"id":"A6F1B6C883C64295A9993EA6DF510E15","code":"010003002","name":"DMI","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"057"},{"id":"4573857DCF264FA7904F2BADA8DDA2B6","code":"010003003","name":"扩展单元","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"057"},{"id":"C8780C4A76D44A159D73806C0411B531","code":"010003004","name":"调理单元","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":"057"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"8D1F76AD88F24F1EA8E6A1B2E796BE9B","name":"自动回采","code":"010004","type":"010","leve":"1","displayOrder":0,"description":"=0：停止自动回采；=1：启动自动回采","scriptContent":"ASTS_SetOutputAutoVerify(p1);","attributes":[{"id":"3A929AB8C7E44861AF378B1A8919C05F","code":"010004001","name":"自动回采","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"059"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"23","name":"延时","code":"010001","type":"010","leve":"1","displayOrder":0,"description":"延时设定时间","scriptContent":"ASTS_Delay(p1);","attributes":[{"id":"A32C3FB532D3480FBF97649D707B49BA","code":"010001001","name":"延时时长","required":"0","type":"1","unit":"S","value":"5","displayValue":"","defaultValue":"5","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"6E6A4A3BFFC44161A0FE329791EC2636","name":"开始观测","code":"011001","type":"011","leve":"1","displayOrder":0,"description":"用于由手动录制脚本功能生成的基本用例。命令测试控制软件开始观测数据","scriptContent":"ASTS_StartMonitor(p1);","attributes":[{"id":"4316F1986D544FABAFC610603CB9491B","code":"011001001","name":"观测项目","required":"0","type":"2","unit":"","value":"{}","displayValue":"","defaultValue":"{}","displayOrder":1,"paramType":3,"paramOrder":1,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"576A4C6D068347ABADBC24B3520C0979","name":"停止观测","code":"011002","type":"011","leve":"1","displayOrder":0,"description":"用于由手动录制脚本功能生成的基本用例。命令测试控制软件停止观测数据，并依照标准源文件对观察的数据进行检验，将检验结果写入数据库。","scriptContent":"ASTS_StopMonitorAndCheck(p1);","attributes":[{"id":"0497FE01EDA243D2A5FC6A6753D66B0E","code":"011002001","name":"标准源文件ID","required":"0","type":"2","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":1,"paramType":3,"paramOrder":1,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"A32FF055E56D402084D60CA6E7862913","name":"延时到","code":"011003","type":"011","leve":"1","displayOrder":0,"description":"延时到特定时刻。","scriptContent":"ASTS_DelayTo(p1);","attributes":[{"id":"E8DB62F743B44843B72AB73DD4FB5766","code":"011003001","name":"绝对时刻","required":"0","type":"1","unit":"ms","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"4D6264ADBE754B65BA03A7618C39FE9D","name":"开始录制","code":"011004","type":"011","leve":"1","displayOrder":0,"description":"重置开始录制的时间","scriptContent":"ASTS_ResetTimeForRecord();","attributes":[],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"015001","name":"分支","code":"015001","type":"015","leve":"2","displayOrder":0,"description":"分支","scriptContent":null,"attributes":[{"id":"FBD2077E02404C6894C0434D43354079","code":"009010002","name":"期望分支","required":"0","type":"3","unit":"","value":"True","displayValue":"","defaultValue":"True","displayOrder":1,"paramType":2,"paramOrder":1,"range":"","dict":"056"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"016001","name":"色灯循环","code":"016001","type":"016","leve":"2","displayOrder":0,"description":"色灯循环","scriptContent":null,"attributes":[{"id":"44278ACE44B84784A6F2055BD4877334","code":"004002001","name":"总线类型","required":"0","type":"3","unit":"","value":"2","displayValue":"","defaultValue":"2","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"022"},{"id":"9B46B71AB2BC4B4580E0C6719C7D9206","code":"016001001","name":"色灯信号","required":"0","type":"4","unit":"","value":"3","displayValue":"","defaultValue":"3","displayOrder":2,"paramType":4,"paramOrder":2,"range":"","dict":"023"},{"id":"68E4050A522D4FF1B35AD56B43922C8A","code":"004002003","name":"信号输出","required":"0","type":"3","unit":"","value":"3","displayValue":"","defaultValue":"3","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"060"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"016002","name":"循环","code":"016002","type":"016","leve":"2","displayOrder":0,"description":"一般循环","scriptContent":null,"attributes":[{"id":"72EB857548554B43A8BAC287A524E293","code":"011001002","name":"超时时间","required":"0","type":"1","unit":"S","value":"1800","displayValue":"","defaultValue":"1800","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"6B96AAFE839042F8BB2459D7BC69F5D6","name":"循环等待","code":"016003","type":"016","leve":"2","displayOrder":0,"description":"循环等待，至某条件（或条件组合）成立时退出，其间自动消除报警信息，并可以设定速度。","scriptContent":null,"attributes":[{"id":"9A641C1E66A54CBCBFEBAE2E8C445A68","code":"011001002","name":"超时时间","required":"0","type":"1","unit":"S","value":"1800","displayValue":"","defaultValue":"1800","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"D1A9872DAAF449B99A5EE31A342A4CFE","code":"001003006","name":"限速差值","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"22","name":"总线数据","code":"009001","type":"009","leve":"3","displayOrder":0,"description":"获取总线数据判断是否满足条件","scriptContent":"p1 ( ASTS_GetLKJFlag(p2,p3) p4 p5)","attributes":[{"id":"08317FCE1A464F64917F557F8B362117","code":"009001001","name":"与上个条件关系","required":"0","type":"3","unit":"","value":" ","displayValue":"","defaultValue":" ","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"051"},{"id":"203A31C659E44C708AE44A9DFF86C781","code":"009001002","name":"系模标志","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"052"},{"id":"27BED02C9A844303B64397114AFDC1A1","code":"009001003","name":"数据项","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"050"},{"id":"F1BC8382A8FA41A69C8D2338933CE1AE","code":"009001004","name":"关系符","required":"0","type":"3","unit":"","value":"==","displayValue":"","defaultValue":"==","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":"053"},{"id":"995ED24F4EB24992B713E19985D57E2D","code":"009001005","name":"结果值","required":"0","type":"6","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"009002","name":"DMI显示","code":"009002","type":"009","leve":"3","displayOrder":0,"description":"通过分析采集到的DMI图形数据，判断DMI显示内容是否与LKJ总线广播数据相一致。","scriptContent":"p1 (ASTS_DMIDisplayValid(p2)==True)","attributes":[{"id":"EA145FBDDEA946E984BDB88173CBEEA6","code":"009001001","name":"与上个条件关系","required":"0","type":"3","unit":"","value":" ","displayValue":"","defaultValue":" ","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"051"},{"id":"68A2568F2D004F36A9637CBD81D0AC09","code":"009002001","name":"DMI区域类型","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"044"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"009003","name":"DMI发音","code":"009003","type":"009","leve":"3","displayOrder":0,"description":"通过分析采集到的DMI发音数据，判断DMI是否正确发出了期待的语音。","scriptContent":"p1 (ASTS_DMIVoiceValid(p2,p3,p4)==True)","attributes":[{"id":"CC56CA7AF7D94B6AB77F003330A34C6C","code":"009001001","name":"与上个条件关系","required":"0","type":"3","unit":"","value":" ","displayValue":"","defaultValue":" ","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"051"},{"id":"B8EF116BB36042018DB0CD9A66FB8255","code":"009003001","name":"语音代码","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"043"},{"id":"70CB513E2E3542288B8B15A98F2670AF","code":"009003002","name":"延时时间","required":"0","type":"1","unit":"S","value":"3","displayValue":"","defaultValue":"3","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"3C264691C065426E89CB7B4E66A03AEE","code":"009003003","name":"应该发声","required":"0","type":"3","unit":"","value":"True","displayValue":"","defaultValue":"True","displayOrder":4,"paramType":2,"paramOrder":4,"range":"","dict":"038"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"009004","name":"制动采集","code":"009004","type":"009","leve":"3","displayOrder":0,"description":"通过分析ASTS平台采集的LKJ制动输出状态，判断LKJ是否正确输出了制动指令。","scriptContent":"p1(ASTS_BrakeStatus(p2)== p3)","attributes":[{"id":"2BA8EDC9D5E34F73A4DBBE3EC9755628","code":"009001001","name":"与上个条件关系","required":"0","type":"3","unit":"","value":" ","displayValue":"","defaultValue":" ","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"051"},{"id":"49D0BBB25CEB493DA48264B74B700921","code":"009004001","name":"制动状态","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"039"},{"id":"944521F796724E68871BD63D449FCDE1","code":"009004003","name":"判断结果","required":"0","type":"3","unit":"","value":"True","displayValue":"","defaultValue":"True","displayOrder":3,"paramType":2,"paramOrder":3,"range":"","dict":"038"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"72BCC3E2BAA149DAAE3F6CBC0C4DFBCC","name":"限速匹配","code":"009005","type":"009","leve":"3","displayOrder":0,"description":"侦听LKJ-15S主控插件发出的制动曲线信息，查询是否存在条件设定的制动曲线信息。","scriptContent":"p1(ASTS_VerifyZhiDongQuXian(p2,p3,p4,p5,p6) ==True)","attributes":[{"id":"B09341C661AF45A98D42D565C3FF862D","code":"009001001","name":"与上个条件关系","required":"0","type":"3","unit":"","value":" ","displayValue":"","defaultValue":" ","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"051"},{"id":"844C77F669354DFB8E33C4531F178CAA","code":"001002001","name":"车站名称","required":"1","type":"6","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"CZMC"},{"id":"2991A24C6454406F835E56AEAA528655","code":"001002002","name":"信号机类型","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"027"},{"id":"EF105CAB2BA54CCE9B1C701DD6C862D8","code":"001002003","name":"信号机编号","required":"1","type":"2","unit":"","value":"","displayValue":"","defaultValue":"","displayOrder":4,"paramType":3,"paramOrder":4,"range":"","dict":""},{"id":"494A6D68AF964078B01EBDB490B88DAC","code":"009005002","name":"距信号机距离","required":"0","type":"1","unit":"米","value":"0","displayValue":"","defaultValue":"0","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"5C991DF82DBF450F907C0C63EEAA53D2","code":"009005001","name":"限速值","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"4571C2C139BB4799BB8249FB01B1586F","name":"LKJ状态自检","code":"009006","type":"009","leve":"3","displayOrder":0,"description":"记录LKJ主机、DMI、扩展单元自检状态，自检异常模块名称","scriptContent":"p1(ASTS_CheckLKJStatus(p2,p3,p4)==True)","attributes":[{"id":"271F782B233F486886442E2D4B10E288","code":"009001001","name":"与上个条件关系","required":"0","type":"3","unit":"","value":" ","displayValue":"","defaultValue":" ","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"051"},{"id":"6DE5D631A75943EC966E898BA5F5B5FF","code":"009006001","name":"主机","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"058"},{"id":"E80A91EB57AE45059E7DD1E7AD806D53","code":"009006002","name":"DMI","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"058"},{"id":"FDB3F9BF01BC4BF5B1941CBAC5C78F6A","code":"009006003","name":"扩展单元","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":"058"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"B6E0110E47234533BEE0F5741024DA16","name":"DMI检测","code":"009007","type":"009","leve":"3","displayOrder":0,"description":"检测DMI图像是否正常","scriptContent":"p1(ASTS_CheckDMIPic()==True)","attributes":[{"id":"3CA152C5F81C43BAACAED3A8E6FD7820","code":"009001001","name":"与上个条件关系","required":"0","type":"3","unit":"","value":" ","displayValue":"","defaultValue":" ","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"051"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"037EDAA582514E48B767BD86B8BABCB7","name":"版本检测","code":"009008","type":"009","leve":"3","displayOrder":0,"description":"系统版本检测控件，可以检测主机、DMI、扩展单元版本是否符合预期，并记录不符的插件或模块版本","scriptContent":"p1(ASTS_VerifyLKJSoftVersion(p2)==True)","attributes":[{"id":"8E6E35912C7140639D3CD9BC090581CD","code":"009001001","name":"与上个条件关系","required":"0","type":"3","unit":"","value":" ","displayValue":"","defaultValue":" ","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"051"},{"id":"8E6C5E4D2D984FDAA4FD272C672EB072","code":"009008001","name":"软件版本","required":"0","type":"2","unit":"","value":"{}","displayValue":"","defaultValue":"{}","displayOrder":2,"paramType":3,"paramOrder":2,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]}];// 请求得到基本用例信息
	for(var i = 0;i<elementData.length;i++){
		if(elementData[i].id == '22'){//设置默认第一个速度为数字输入框
			elementData[i].attributes[4].type ='1';
		}
	}
	var htmla = "";
	for (var i = 0; i < elementData.length; i++) {
		var type = elementData[i].type;
		$("#" + type).empty();
		$("#home").empty();
		$("#home2").empty();
		$("#Graphics").empty();
	}
	// 遍历获取到的用例元素放入相应位置并绑定拖动事件
	for (var i = 0; i < elementData.length; i++) {
		var lev = elementData[i].leve;
		var type = elementData[i].type;
		if (lev == "1") {
			var c = $("#home div[id='" + type + "']");
			if (c.length > 0) {
				$("#" + type).append(
						"<a draggable='true' id='"
								+ elementData[i].id + "' "
								+ "name='"
								+ elementData[i].name
								+ "' type='"
								+ elementData[i].type
								+ "' code='"
								+ elementData[i].code
								+ "' leve='1'>"
								+ elementData[i].name
								+ "</a>");
			} else {
				$("#home").append(
						"<div id='" + type + "'></div>");
				$("#" + type).append(
						"<a draggable='true' id='"
								+ elementData[i].id + "' "
								+ "name='"
								+ elementData[i].name
								+ "' type='"
								+ elementData[i].type
								+ "' code='"
								+ elementData[i].code
								+ "' leve='1'>"
								+ elementData[i].name
								+ "</a>");
			}
		} else if (elementData[i].leve == "2") {
			// 逻辑控件
			var c = $("#home2 div[id='" + type + "']");
			if (c.length > 0) {
				$("#" + type).append(
						"<a draggable='true' id='"
								+ elementData[i].id + "' "
								+ "name='"
								+ elementData[i].name
								+ "' type='"
								+ elementData[i].type
								+ "' code='"
								+ elementData[i].code
								+ "' leve='2'>"
								+ elementData[i].name
								+ "</a>");
			} else {
				$("#home2").append(
						"<div id='" + type + "'></div>");
				$("#" + type).append(
						"<a draggable='true' id='"
								+ elementData[i].id + "' "
								+ "name='"
								+ elementData[i].name
								+ "' type='"
								+ elementData[i].type
								+ "' code='"
								+ elementData[i].code
								+ "' leve='2'>"
								+ elementData[i].name
								+ "</a>");
			}
		} else if (elementData[i].leve == "3") {
			var c = $("#Graphics div[id='" + type + "']");
			if (c.length > 0) {
				$("#" + type).append(
						"<a draggable='true' id='"
						+ elementData[i].id + "' " + "name='"
						+ elementData[i].name + "' type='"
						+ elementData[i].type + "' code='"
						+ elementData[i].code
						+ "' leve='3' elementId='"
						+ elementData[i].elementId + "' >"
						+ elementData[i].name + "</a>");
			} else {
				$("#Graphics").append(
						"<div id='" + type + "'></div>");
				$("#" + type).append(
						"<a draggable='true' id='"
						+ elementData[i].id + "' " + "name='"
						+ elementData[i].name + "' type='"
						+ elementData[i].type + "' code='"
						+ elementData[i].code
						+ "' leve='3' elementId='"
						+ elementData[i].elementId + "' >"
						+ elementData[i].name + "</a>");
			}
		}
	}
	for (var i = 0; i < elementData.length; i++) {
		if($("#" + elementData[i].id) == null || $("#" + elementData[i].id)[0] == null){
			continue;
		}
		$("#" + elementData[i].id)[0].ondragstart = function(
				ev) {
			ev = ev || window.event;
			// 设置数据，保存在dataTransfer中的数据只能在drop事件处理函数中处理
			ev.dataTransfer.setData("id",
					ev.currentTarget.id);
			ev.dataTransfer.setData("name",
					ev.currentTarget.name);
			ev.dataTransfer.setData("type",
					ev.currentTarget.type);
			ev.dataTransfer.setData("leve",
					ev.target.attributes["leve"].value);
			ev.dataTransfer.setData("code",
					ev.target.attributes["code"].value);
			currentObj = {};
			currentObj.type = ev.target.type;
			currentObj.leve = ev.target.attributes["leve"].value;
			currentObj.code = ev.target.attributes["code"].value;
		};
	}
	
	// 左侧基本用例元素信息加载
//	$
//			.ajax({
//				type : "GET",
//				url : "../../../basecase/queryAllCaseElements",
//				data : {
//					name:$('#elementNameSearch').val()
//				},
//				dataType : "json",
//				async : false,
//				success : function(data) {
//					console.log(data);
//					exportRaw('text.txt',JSON.stringify(data.content));
//					elementData = [];
//					if (data.flag == "0") {
//						elementData = [{"id":"D323A151A8AF4805894BB37A630C6A2A","name":"异常退出","code":"000000","type":"000","leve":"1","displayOrder":0,"description":"退出本基本用例。发生错误时，不再执行本基本用例的后续代码。","scriptContent":"return;","attributes":[],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"1","name":"速度变化","code":"001001","type":"001","leve":"1","displayOrder":0,"description":"设置目标速度值、加速度值、速度相位","scriptContent":"ASTS_SetSuDu(p1,p2,p3,p4);","attributes":[{"id":"331F1B8009DD4E59854598498067BAFE","code":"001001001","name":"速度","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"AD3997E483C543B8B8163F1D0D3FFC99","code":"001001002","name":"加速度","required":"0","type":"1","unit":"0.01km/h/s","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"1D1DE1CE17BD4366891D80B6100486DD","code":"001001003","name":"速度相位","required":"0","type":"3","unit":"°","value":"2","displayValue":"","defaultValue":"2","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"004"},{"id":"61D2D03BECD348DD9CF03CF8072E6114","code":"001001004","name":"智能变化","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":"067"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"F8150D3B415C4194A1AD4317698727D8","name":"初始化LKJ","code":"001000","type":"001","leve":"1","displayOrder":0,"description":"设定ASTS输出的特定信号，为LKJ提供纯净的初始化工作环境，以达到初始化基本用例工作环境的目的。","scriptContent":"ASTS_InitLKJCondition(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17,p18,p19,p20,p21,p22,p23,p24);","attributes":[{"id":"3ECE3C353AF94490BDE642E55112F5A5","code":"001001001","name":"速度","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"05335B70309D42DAB2269CA9638C9B49","code":"001000001","name":"总风缸压力","required":"0","type":"1","unit":"kpa","value":"900","displayValue":"","defaultValue":"900","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"C022D80F75184C84A6E871D906E8C194","code":"001000002","name":"列车管压力","required":"0","type":"1","unit":"kpa","value":"600","displayValue":"","defaultValue":"600","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"E43E0A8C4452434A9AA6EFD25743D266","code":"001000003","name":"制动缸压力","required":"0","type":"1","unit":"kpa","value":"0","displayValue":"","defaultValue":"0","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""},{"id":"F021C328C9804AA6997A757C3FC555CB","code":"001000004","name":"均缸1压力","required":"0","type":"1","unit":"kpa","value":"600","displayValue":"","defaultValue":"600","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"EFFAF4EE6FF44C3083787256854A781C","code":"001000005","name":"均缸2压力","required":"0","type":"1","unit":"kpa","value":"600","displayValue":"","defaultValue":"600","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""},{"id":"24A8091416374455935D83E244BF4D78","code":"006001007","name":"柴速","required":"0","type":"1","unit":"r/min","value":"800","displayValue":"","defaultValue":"800","displayOrder":7,"paramType":1,"paramOrder":7,"range":"","dict":""},{"id":"AEB8D5BB777E49FE903C04E1C12710EE","code":"004002002","name":"色灯信号","required":"0","type":"3","unit":"","value":"3","displayValue":"","defaultValue":"3","displayOrder":8,"paramType":1,"paramOrder":8,"range":"","dict":"023"},{"id":"69153A9101B14AC4BD2DDF321083B3F6","code":"001000006","name":"零位","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":9,"paramType":1,"paramOrder":9,"range":"","dict":"021"},{"id":"B6F3F0FC5E8E47F1B5752760C3794997","code":"003001003","name":"向前","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":10,"paramType":1,"paramOrder":10,"range":"","dict":"020"},{"id":"32351E3E18024377ABCFF6CBC1A32452","code":"003001004","name":"向后","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":11,"paramType":1,"paramOrder":11,"range":"","dict":"036"},{"id":"449434C2DEE14C67AE611E274F7E2F32","code":"003001005","name":"牵引","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":12,"paramType":1,"paramOrder":12,"range":"","dict":"005"},{"id":"F0D21E5391F5486C8356D576B81F8D2C","code":"003001006","name":"制动","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":13,"paramType":1,"paramOrder":13,"range":"","dict":"035"},{"id":"09C7D624A073488399688E3BB8A92364","code":"003001007","name":"II端警惕","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":14,"paramType":1,"paramOrder":14,"range":"","dict":"047"},{"id":"E40FF041795B4ED3AB620AF50C33A3F8","code":"003001008","name":"I端警惕","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":15,"paramType":1,"paramOrder":15,"range":"","dict":"040"},{"id":"7819434C53EA41D78C5064CE21668F57","code":"003001009","name":"车档","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":16,"paramType":1,"paramOrder":16,"range":"","dict":"047"},{"id":"505817ECEBAA4999A800D60224B22588","code":"003001010","name":"ATP控车","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":17,"paramType":1,"paramOrder":17,"range":"","dict":"030"},{"id":"302442A20A934286A2A6EE21174AFEA0","code":"003001011","name":"备用3","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":18,"paramType":1,"paramOrder":18,"range":"","dict":"047"},{"id":"2189CF8CD10242DEAFCB205F41FC45E3","code":"003001012","name":"备用4","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":19,"paramType":1,"paramOrder":19,"range":"","dict":"047"},{"id":"3BCA322B91B44777AD0FD0F5C47A472F","code":"003001013","name":"常1回采","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":20,"paramType":1,"paramOrder":20,"range":"","dict":"048"},{"id":"992CC3F25A8448BB9C5DFE88AE95E4C2","code":"003001014","name":"常4回采","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":21,"paramType":1,"paramOrder":21,"range":"","dict":"048"},{"id":"F06C50055B7C4D3E8ED90E4FCBA0EB6F","code":"003001015","name":"常7回采","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":22,"paramType":1,"paramOrder":22,"range":"","dict":"048"},{"id":"B4AE20B7A6BB49F697DB7B52B7CE728D","code":"003001016","name":"得紧回读","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":23,"paramType":1,"paramOrder":23,"range":"","dict":"048"},{"id":"09B906EF811742EEA6A4C04ED7A475F0","code":"003001017","name":"失紧回读","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":24,"paramType":1,"paramOrder":24,"range":"","dict":"048"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"2","name":"目标速度","code":"001002","type":"001","leve":"1","displayOrder":0,"description":"根据限速设定速度，控制LKJ运行至目标点位置。到目标点后，设定预置速度。","scriptContent":"ASTS_SetTargetSuDu(p1,p2,p3,p4,p5,p6,p7);","attributes":[{"id":"E8C31A2542614A36AC7E3FEE06613E2F","code":"001002001","name":"车站名称","required":"1","type":"6","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"CZMC"},{"id":"130D81B0346D44E5B0754FC05946BB94","code":"001002002","name":"信号机类型","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"027"},{"id":"3EA9DD13C37544FCAAC36DC54ACC99AD","code":"001002003","name":"信号机编号","required":"1","type":"2","unit":"","value":"","displayValue":"","defaultValue":"","displayOrder":3,"paramType":3,"paramOrder":3,"range":"","dict":""},{"id":"CFE8E2B1F6064C8FAC74EA613604006E","code":"001002004","name":"目标点里程","required":"1","type":"1","unit":"m","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""},{"id":"D81E62E78F3246EE9756019168E3E692","code":"001002005","name":"目标点距离","required":"0","type":"1","unit":"m","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"812A86A0064340098C81DF8E1DD3AEF6","code":"001003006","name":"限速差值","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""},{"id":"1300B49437164CBFBEA68C5E4F54239B","code":"001002006","name":"目标点速度","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":7,"paramType":1,"paramOrder":7,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"4","name":"通道速度","code":"001004","type":"001","leve":"1","displayOrder":0,"description":"分别设置9路速度值，可分别设置4组速度相位（90度或270度）","scriptContent":"ASTS_SetTongDaoSuDu(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13);","attributes":[{"id":"9CE812CA769F4623BC01FAA0C267E872","code":"001004001","name":"I系速度1","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"B8A63BDBB1634D3EA84F055A9527B360","code":"001004002","name":"I系速度2","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"42C437762D32448AB8DFEF10E673DD56","code":"001004003","name":"I系速度3","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"4BD1B44126244670A7E108B44B0F184D","code":"001004004","name":"I系速度4","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""},{"id":"A900584F1F584380A174253E3239F389","code":"001004005","name":"II系速度1","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"D0A5660B38204383A9187FC01A091DE6","code":"001004006","name":"II系速度2","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""},{"id":"6883F33029974A96A2BDA3F056D0391F","code":"001004007","name":"II系速度3","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":7,"paramType":1,"paramOrder":7,"range":"","dict":""},{"id":"BDCB7A626A684AF3A44A82366D57BA32","code":"001004008","name":"II系速度4","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":8,"paramType":1,"paramOrder":8,"range":"","dict":""},{"id":"60BAE2DB339D4543B9A873A119DF079A","code":"001004009","name":"备用速度","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":9,"paramType":1,"paramOrder":9,"range":"","dict":""},{"id":"422813DD76CB4C8B8AFC320CA37C44FC","code":"001004010","name":"I系相位1","required":"0","type":"3","unit":"°","value":"2","displayValue":"","defaultValue":"2","displayOrder":10,"paramType":1,"paramOrder":10,"range":"","dict":"004"},{"id":"C0BDD8CDECDA4072837E96BEED14F410","code":"001004011","name":"I系相位2","required":"0","type":"3","unit":"°","value":"2","displayValue":"","defaultValue":"2","displayOrder":11,"paramType":1,"paramOrder":11,"range":"","dict":"004"},{"id":"4950105C290D4C65B00BD604155FAAE5","code":"001004012","name":"II系相位3","required":"0","type":"3","unit":"°","value":"2","displayValue":"","defaultValue":"2","displayOrder":12,"paramType":1,"paramOrder":12,"range":"","dict":"004"},{"id":"FAD444910D804C8E9608FBE035B54F1D","code":"001004013","name":"II系相位4","required":"0","type":"3","unit":"°","value":"2","displayValue":"","defaultValue":"2","displayOrder":13,"paramType":1,"paramOrder":13,"range":"","dict":"004"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"4BB25D2060A2445EA1E1629E02C94CF7","name":"界限值检测","code":"001005","type":"001","leve":"1","displayOrder":0,"description":"判定报警、卸载、常用、紧急四种状态对应的速度值是否正确，速度为零时无报警，给出判定结果。","scriptContent":"ASTS_LimitValueDetection(p1,p2);","attributes":[{"id":"0D18532EDE544422865281BFB14F3414","code":"001005001","name":"界限值","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"C54DA60C9002473697CB28ABE8408A90","code":"001005002","name":"期待动作","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"068"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"F8EF7FA4A7A141669F1FC600A091251B","name":"位移判断","code":"001006","type":"001","leve":"1","displayOrder":0,"description":"为验证“手柄防溜”等业务功能，判断机车的位移是否达到预期值","scriptContent":"ASTS_Move(p1,p2);","attributes":[{"id":"36A5C18DB8914E43B6C0764A58533001","code":"011001002","name":"超时时间","required":"0","type":"1","unit":"S","value":"1800","displayValue":"","defaultValue":"1800","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"1EA852D4BE284A7A8CC9FE4024E270B5","code":"001006002","name":"位移距离","required":"0","type":"1","unit":"米","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"D451E5F0C64E419885500B8281482E7A","name":"宕机允许","code":"001007","type":"001","leve":"1","displayOrder":0,"description":"脚本执行中，应持续检测LKJ状态，对宕机进行处理。当LKJ出现非预期的宕机时，脚本应记录宕机结果，退出执行。本控件用于设定是否允许LKJ出现宕机。","scriptContent":"ASTS_SetLKJDownEnabled(p1);","attributes":[{"id":"1580135A94864218892A99FFC4D44134","code":"001007001","name":"是否允许宕机","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"074"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"16","name":"柴速原边","code":"006001","type":"001","leve":"1","displayOrder":0,"description":"设置柴速值、原边电压、原边电流值。","scriptContent":"ASTS_SetChaiSu(p1,p2,p3,p4,p5,p6);","attributes":[{"id":"997A59E5F2A44E1699BB5C0F06C8F46E","code":"006001001","name":"I系柴速","required":"0","type":"1","unit":"r/min","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"267C0F91FACD41D1999FAE218F348258","code":"006001002","name":"I系原边电压","required":"0","type":"1","unit":"V","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"E995D3A3C2084B3E9AB1F12032458EF8","code":"006001003","name":"I系原边电流","required":"0","type":"1","unit":"A","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"D74F69EC25814493A45CB74B45336B2F","code":"006001004","name":"II系柴速","required":"0","type":"1","unit":"r/min","value":"0","displayValue":"","defaultValue":"0","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""},{"id":"22D298786470458694D8EA9D4136572B","code":"006001005","name":"II系原边电压","required":"0","type":"1","unit":"V","value":"0","displayValue":"","defaultValue":"0","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"D62E4846471F4684AEEB476BF6AEFE8F","code":"006001006","name":"II系原边电流","required":"0","type":"1","unit":"A","value":"0","displayValue":"","defaultValue":"0","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"002006","name":"设置压力","code":"002006","type":"002","leve":"1","displayOrder":0,"description":"设定各个风缸压力","scriptContent":"ASTS_SetAllGuanYa(p1,p2,p3,p4,p5,p6);","attributes":[{"id":"84AC8A13A42047458CE398ED4681FDB5","code":"002006001","name":"压力1（列车管）","required":"0","type":"1","unit":"kPa","value":"600","displayValue":"","defaultValue":"600","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"208E036AA03045CFA3D1D446ECF7BE7A","code":"002006002","name":"压力2（制动缸）","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"5838D06483124615AD133FE70A6EC569","code":"002006003","name":"压力3（均缸1）","required":"0","type":"1","unit":"kPa","value":"600","displayValue":"","defaultValue":"600","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"62189653F92F4CF883FB86148673D963","code":"002006004","name":"压力4（均缸2）","required":"0","type":"1","unit":"kPa","value":"600","displayValue":"","defaultValue":"600","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""},{"id":"2A2A3B1F596E4D61A1BC982E2EDC6BFB","code":"002006005","name":"压力5（总风缸）","required":"0","type":"1","unit":"kPa","value":"600","displayValue":"","defaultValue":"600","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"9DE5F2EB5C0A4583840318E4174E11ED","code":"002006006","name":"压力6（备用）","required":"0","type":"1","unit":"kPa","value":"600","displayValue":"","defaultValue":"600","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"5","name":"总风缸压力","code":"002001","type":"002","leve":"1","displayOrder":0,"description":"设定总风缸压力","scriptContent":"ASTS_SetZongGangYa(p1,p2,p3);","attributes":[{"id":"E3BF976D7658408E9D2CA861A6967250","code":"002001001","name":"I系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"6C0F6DCBC1544333AE24EBB9CA64E4F5","code":"002001002","name":"II系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"516DD73E54AA46BFA8722B9CB9B1F706","code":"002001003","name":"压力变化速率","required":"0","type":"1","unit":"kPa/s","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"7","name":"制动缸压力","code":"002003","type":"002","leve":"1","displayOrder":0,"description":"设定制动缸压力","scriptContent":"ASTS_SetZhiDongGangYa(p1,p2,p3);","attributes":[{"id":"142003F12C474EB19651B9E25A5C399D","code":"002001001","name":"I系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"08CA0A1417DB4B53A6FDDEDB5CD95C35","code":"002001002","name":"II系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"1DB5627C82614CF1B5689B0C409ECC6A","code":"002001003","name":"压力变化速率","required":"0","type":"1","unit":"kPa/s","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"6","name":"列车管压力","code":"002002","type":"002","leve":"1","displayOrder":0,"description":"设定列车管压力","scriptContent":"ASTS_SetLieCheGuanYa(p1,p2,p3);","attributes":[{"id":"122CB9025056401BAE106B6035DF016C","code":"002001001","name":"I系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"5C15055434C24C7F8FF072673A4D04FC","code":"002001002","name":"II系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"B503698E2765473CB2666043AC0D3261","code":"002001003","name":"压力变化速率","required":"0","type":"1","unit":"kPa/s","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"9","name":"均缸1压力","code":"002005","type":"002","leve":"1","displayOrder":0,"description":"设定均缸1压力","scriptContent":"ASTS_SetJun1GangYa(p1,p2,p3);","attributes":[{"id":"9B4894EF6E3744FF89AFFE5846D741CA","code":"002001001","name":"I系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"5BF304100EA549989C16CEAEB7DB4EEE","code":"002001002","name":"II系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"262CD02566CE4B63A8858477AD744E2A","code":"002001003","name":"压力变化速率","required":"0","type":"1","unit":"kPa/s","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"8","name":"均缸2压力","code":"002004","type":"002","leve":"1","displayOrder":0,"description":"设定均缸2压力","scriptContent":"ASTS_SetJun2GangYa(p1,p2,p3);","attributes":[{"id":"9CD43AB742DC48E0B15164F3841BCD77","code":"002001001","name":"I系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"F759EB9736D94450AE8A450A38A1F6CE","code":"002001002","name":"II系压力","required":"0","type":"1","unit":"kPa","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"6DB13F48CEE64FB181A2478903025497","code":"002001003","name":"压力变化速率","required":"0","type":"1","unit":"kPa/s","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"10","name":"工况","code":"003001","type":"003","leve":"1","displayOrder":0,"description":"设定工况输出信号","scriptContent":"ASTS_SetGongKuang(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17);","attributes":[{"id":"A51C405D18F04F718D300BF28DECF158","code":"003001001","name":"系别","required":"0","type":"3","unit":"","value":"3","displayValue":"","defaultValue":"3","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"032"},{"id":"221118F52F91480E8852CDAE690BDC07","code":"003001002","name":"零位","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"021"},{"id":"E8797BD76176499BB1A73CE93AC33DF9","code":"003001003","name":"向前","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"020"},{"id":"B400D61DDEB04649ACC06025678E2003","code":"003001004","name":"向后","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":"036"},{"id":"FABC6422410F435FACBC6BB53FBE2B5C","code":"003001005","name":"牵引","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":"005"},{"id":"869CEEDE0E5B4EE9AF6DAA3DA8BA21ED","code":"003001006","name":"制动","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":"035"},{"id":"0C2B39357AB54228A08903E81D5E7A01","code":"003001007","name":"II端警惕","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":7,"paramType":1,"paramOrder":7,"range":"","dict":"047"},{"id":"174D6544C91049DEB23BCCB1205CAD65","code":"003001008","name":"I端警惕","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":8,"paramType":1,"paramOrder":8,"range":"","dict":"040"},{"id":"78E95C8817C146C58E313D268CEC3F9F","code":"003001009","name":"车档","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":9,"paramType":1,"paramOrder":9,"range":"","dict":"047"},{"id":"94A0149E902F4F5690C077DB7C861774","code":"003001010","name":"ATP控车","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":10,"paramType":1,"paramOrder":10,"range":"","dict":"030"},{"id":"698CA466E63644BBB94635F0BEDD6DE3","code":"003001011","name":"备用3","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":11,"paramType":1,"paramOrder":11,"range":"","dict":"047"},{"id":"EB5BFA27E7694D149D92F5E9FB037A82","code":"003001012","name":"备用4","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":12,"paramType":1,"paramOrder":12,"range":"","dict":"047"},{"id":"407F5058152047298123878CC43FA687","code":"003001013","name":"常1回采","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":13,"paramType":1,"paramOrder":13,"range":"","dict":"048"},{"id":"5BDBED093EA54F5DAA67CB20E1E8C9DF","code":"003001014","name":"常4回采","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":14,"paramType":1,"paramOrder":14,"range":"","dict":"048"},{"id":"3018EDD8F2B94F73BA84D240086082F7","code":"003001015","name":"常7回采","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":15,"paramType":1,"paramOrder":15,"range":"","dict":"048"},{"id":"706493F843414FC88AD5F81B9C589C26","code":"003001016","name":"得紧回读","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":16,"paramType":1,"paramOrder":16,"range":"","dict":"048"},{"id":"3DFD94C6F1824E4FA03E467699C3F3BB","code":"003001017","name":"失紧回读","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":17,"paramType":1,"paramOrder":17,"range":"","dict":"048"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"11","name":"开关量输入","code":"003002","type":"003","leve":"1","displayOrder":0,"description":"设定其他开关量输入信号","scriptContent":"ASTS_SetKaiGuanLiang(p1,p2,p3,p4,p5,p6,p7);","attributes":[{"id":"21471C318ED64DE4A3966E8157CC7B61","code":"003002001","name":"I端警惕时长","required":"0","type":"1","unit":"0.1s","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"8B5AE65AE24D45F38FF7E35C73D74475","code":"003002002","name":"II端警惕时长","required":"0","type":"1","unit":"0.1s","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"D6BEED20F3714C2897AB22C467BD4240","code":"003002003","name":"土档时长","required":"0","type":"1","unit":"0.1s","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"5E60CED9B06D47A59787AFCF7E8FD484","code":"003002004","name":"I端鸣笛信号","required":"0","type":"1","unit":"0.1s","value":"0","displayValue":"","defaultValue":"0","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""},{"id":"C6FDFEF6D9164B1784EA4BB14E15D07E","code":"003002005","name":"II端鸣笛信号","required":"0","type":"1","unit":"0.1s","value":"0","displayValue":"","defaultValue":"0","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"730B8E06948D45B2A261B07AF36AEFF3","code":"003002006","name":"手动主断时长","required":"0","type":"1","unit":"0.1s","value":"0","displayValue":"","defaultValue":"0","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""},{"id":"FC0B8C9A5A1C438D8DEC37AE16B2B715","code":"003002007","name":"自动主断时长","required":"0","type":"1","unit":"0.1s","value":"0","displayValue":"","defaultValue":"0","displayOrder":7,"paramType":1,"paramOrder":7,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"12","name":"JTC信号","code":"004002","type":"004","leve":"1","displayOrder":0,"description":"设定机车信号输入","scriptContent":"ASTS_SetJtcXinHao(p1,p2,p3);","attributes":[{"id":"0D1B16DE76C5495999E270382D04C531","code":"004002001","name":"总线类型","required":"0","type":"3","unit":"","value":"2","displayValue":"","defaultValue":"2","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"022"},{"id":"54752DD9CF3647ABA003C168A9ED5F12","code":"004002002","name":"色灯信号","required":"0","type":"3","unit":"","value":"3","displayValue":"","defaultValue":"3","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"023"},{"id":"47D640E4C7074A1EA8F6FFFB23375F49","code":"004002003","name":"信号输出","required":"0","type":"3","unit":"","value":"3","displayValue":"","defaultValue":"3","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"060"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"13","name":"ATP信号","code":"004003","type":"004","leve":"1","displayOrder":0,"description":"设定ATP信号输入","scriptContent":"ASTS_SetAtpXinHao(p1,p2);","attributes":[{"id":"D98CD284D71342E6B8F72617FA5660FC","code":"004003001","name":"I系ATP信号","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"031"},{"id":"392990D87D2543A28B02709D58E6B310","code":"004003002","name":"II系ATP信号","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"031"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"14","name":"平调信号","code":"004004","type":"004","leve":"1","displayOrder":0,"description":"设定平调信号输入","scriptContent":"ASTS_SetPingDiaoXinHao(p1,p2);","attributes":[{"id":"2C774C13F55042AA802B7154703F51C1","code":"004004001","name":"平调信号","required":"0","type":"3","unit":"","value":"15","displayValue":"","defaultValue":"15","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"011"},{"id":"BE4DC64AB59D4D56BAE0AEC3CC7F6C1D","code":"004004002","name":"信号输出","required":"0","type":"3","unit":"","value":"3","displayValue":"","defaultValue":"3","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"060"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"15","name":"绝缘节","code":"005001","type":"004","leve":"1","displayOrder":0,"description":"设定绝缘节数据输入","scriptContent":"ASTS_SetJueYuanJie(p1,p2,p3,p4);","attributes":[{"id":"C5A07DA0553C49A9AE09788CF3E4780A","code":"005001001","name":"信号制式","required":"0","type":"3","unit":"","value":"7","displayValue":"","defaultValue":"7","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"012"},{"id":"21653C58E0C54649B124E548031FCB30","code":"005001004","name":"上下行","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"014"},{"id":"FFB253A058084D249530D7E63868F403","code":"005001003","name":"出口电平","required":"0","type":"1","unit":"V","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"8F9D17B2E6724128860A8EF3064B9034","code":"005001002","name":"过机信号","required":"0","type":"3","unit":"","value":"2","displayValue":"","defaultValue":"2","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":"024"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"17","name":"DMI按键","code":"007001","type":"007","leve":"1","displayOrder":0,"description":"设定按键输入代码","scriptContent":"ASTS_SendKeyToDMI(p1,p2,p3,p4);","attributes":[{"id":"D827149E92E748B9A6BF0974BE65B7D1","code":"007001004","name":"触摸屏按键","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"033"},{"id":"753A84AA5EF344E385ABC28A61877EA6","code":"007001003","name":"按键代码","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"034"},{"id":"DD66DC27BFC64077A6BAE33BD04A6EF5","code":"007001001","name":"按键位置X","required":"0","type":"1","unit":"px","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"93D132585E6D4B77B5B172D4EA7DFCAF","code":"007001002","name":"按键位置Y","required":"0","type":"1","unit":"px","value":"0","displayValue":"","defaultValue":"0","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"010002","name":"校时","code":"010002","type":"007","leve":"1","displayOrder":0,"description":"校正LKJ时间,当参数=-1时，用测控单元本机时间校正LKJ时间，年月日、时分秒、毫秒；参数=其他值时，用参数值设定LKJ时间","scriptContent":"ASTS_SetLKJDateTime(p1);","attributes":[{"id":"5125818F78134CE3BA42A4E267983BB4","code":"010002001","name":"时间","required":"0","type":"5","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":1,"paramType":3,"paramOrder":1,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"28","name":"编组设定","code":"007005","type":"007","leve":"1","displayOrder":0,"description":"设定司机发车时的编组参数","scriptContent":"ASTS_SetBianZuCanShu(p1,p2,p3,p4,p5,p6,p7);","attributes":[{"id":"FE3A61DB56294ABE8107B54F95E3E624","code":"007005001","name":"载重","required":"0","type":"1","unit":"t","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"C9B5D2100ACA454EB3FA5B2EBB711446","code":"007005002","name":"客车","required":"0","type":"1","unit":"节","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"85AED33BED0E4CA382AAEE5DC2D6AA93","code":"007005003","name":"重车","required":"0","type":"1","unit":"节","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"8C6DB927947641E79476BBCB7FB7A7B5","code":"007005004","name":"空车","required":"0","type":"1","unit":"节","value":"0","displayValue":"","defaultValue":"0","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""},{"id":"AC6F9CA339E84E66A32AFCC58F3915A4","code":"007005005","name":"非运客车","required":"0","type":"1","unit":"节","value":"0","displayValue":"","defaultValue":"0","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"272C251575594BD6847B0CFDABF1CA6E","code":"007005006","name":"代客车","required":"0","type":"1","unit":"节","value":"0","displayValue":"","defaultValue":"0","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""},{"id":"7A852D4F80D54028B182CA0C9B7E386E","code":"007005007","name":"守车","required":"0","type":"1","unit":"节","value":"0","displayValue":"","defaultValue":"0","displayOrder":7,"paramType":1,"paramOrder":7,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"29","name":"检修设定","code":"007006","type":"007","leve":"1","displayOrder":0,"description":"设定检修参数","scriptContent":"ASTS_SetJianXiuCanShu(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10);","attributes":[{"id":"2304F3E66772487FB5FB2142A8D33B8C","code":"007006001","name":"配属段号","required":"0","type":"1","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"1FD58A911C2042F18DE4C9FDCD9530A5","code":"007006002","name":"机车型号","required":"0","type":"3","unit":"","value":"138","displayValue":"","defaultValue":"138","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"101"},{"id":"1D15C1B434A14EF7B7E5759E3C93547C","code":"007006004","name":"机车号","required":"0","type":"1","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":""},{"id":"F97247C1B52D4E8DB523805F0A224858","code":"007006005","name":"轮径1","required":"0","type":"1","unit":"0.1mm","value":"0","displayValue":"","defaultValue":"0","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"C5364F50C38D4C3BABE17D7C582DF2CC","code":"007006006","name":"轮径2","required":"0","type":"1","unit":"0.1mm","value":"0","displayValue":"","defaultValue":"0","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""},{"id":"0E65AB4B589B4AF28BD54E5A4C360F77","code":"007006007","name":"柴油机脉冲","required":"0","type":"1","unit":"个","value":"0","displayValue":"","defaultValue":"0","displayOrder":7,"paramType":1,"paramOrder":7,"range":"","dict":""},{"id":"86B80AEDBFC64F65A37557D0D27C9F0B","code":"007006008","name":"双针表量程","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":8,"paramType":1,"paramOrder":8,"range":"","dict":""},{"id":"571800475C0943BAAE5EEE62446F60D7","code":"007006009","name":"BTM距I端距离","required":"0","type":"1","unit":"m","value":"0","displayValue":"","defaultValue":"0","displayOrder":9,"paramType":1,"paramOrder":9,"range":"","dict":""},{"id":"CEBF86AF89BB4CE3AFF08DEEA5BEBB0C","code":"007006010","name":"GPS距I端距离","required":"0","type":"1","unit":"m","value":"0","displayValue":"","defaultValue":"0","displayOrder":10,"paramType":1,"paramOrder":10,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"20","name":"发车设定","code":"007004","type":"007","leve":"1","displayOrder":0,"description":"设定司机发车参数","scriptContent":"ASTS_SetKaiCheCanShu(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12,p13,p14,p15,p16,p17,p18,p19,p20,p21,p22);","attributes":[{"id":"EFD940771260436AB05DB800518E4A16","code":"007004001","name":"司机号1","required":"0","type":"1","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"9689721F01E34F529A86BD90CB91052E","code":"007004002","name":"司机号2","required":"0","type":"1","unit":"","value":"2","displayValue":"","defaultValue":"2","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"6266C89A0C794235B0C9D02A5A298542","code":"007004006","name":"总重","required":"0","type":"1","unit":"t","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":7,"range":"","dict":""},{"id":"A63B062AF4E94D7A8F42248506C511DF","code":"007004007","name":"辆数","required":"0","type":"1","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":4,"paramType":1,"paramOrder":8,"range":"","dict":""},{"id":"628B84F6B7824F28BAA421DD3ED71EB2","code":"007004008","name":"计长","required":"0","type":"1","unit":"0.1","value":"0","displayValue":"","defaultValue":"0","displayOrder":5,"paramType":1,"paramOrder":9,"range":"","dict":""},{"id":"9B30C6B296064B999B45C45ADF85A137","code":"007004004","name":"车种标识","required":"1","type":"6","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":6,"paramType":3,"paramOrder":5,"range":"","dict":"CZBS"},{"id":"869F032A90E5420AAF485EAF79FF914D","code":"007004003","name":"列车类型","required":"1","type":"6","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":7,"paramType":3,"paramOrder":3,"range":"","dict":"LCLX"},{"id":"AB99FFE1CB004B1684F5BBAE0DC1BB9F","code":"007004016","name":"列车标志","required":"1","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":8,"paramType":1,"paramOrder":4,"range":"","dict":"054"},{"id":"ECD0ACF5DB0C4E479B9D47C6330030C3","code":"007004005","name":"车次号码","required":"1","type":"1","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":9,"paramType":1,"paramOrder":6,"range":"","dict":""},{"id":"55F5FE5815A94FFF902AF865A5F8869A","code":"007004009","name":"车速等级","required":"1","type":"1","unit":"","value":"120","displayValue":"","defaultValue":"120","displayOrder":10,"paramType":1,"paramOrder":10,"range":"","dict":""},{"id":"B3B03E8A1A404E85BD2CD28DDD18F9CD","code":"007004010","name":"起始站名","required":"1","type":"6","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":11,"paramType":1,"paramOrder":11,"range":"","dict":"QSZM"},{"id":"3993E599EBB44611A1267A6D379DA680","code":"007004011","name":"站场名","required":"1","type":"6","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":12,"paramType":3,"paramOrder":18,"range":"","dict":"ZCM"},{"id":"C9C74DCC6F33401BBC4C6C04479B675D","code":"007004012","name":"发车股道","required":"1","type":"1","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":13,"paramType":1,"paramOrder":17,"range":"","dict":""},{"id":"BE5AA1658A7C49138FF4916DEE7C85B1","code":"007004013","name":"发车方向","required":"1","type":"6","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":14,"paramType":1,"paramOrder":15,"range":"","dict":"FCFX"},{"id":"246EAB62425742ADB2DE6F7311F0F2E9","code":"007004014","name":"终止站名","required":"1","type":"6","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":15,"paramType":1,"paramOrder":13,"range":"","dict":"ZZZM"},{"id":"496C4C720EBB4426A6BF28D394A1086E","code":"007004015","name":"运行径路","required":"1","type":"6","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":16,"paramType":1,"paramOrder":19,"range":"","dict":"YXJL"},{"id":"0BDA0107E8654267BB80BC55EC70B590","code":"007004017","name":"对标位置类型","required":"1","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":17,"paramType":1,"paramOrder":21,"range":"","dict":"069"},{"id":"21E3B9CA3DD14A60BCA6592B2A61085F","code":"007004018","name":"对标位置","required":"1","type":"2","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":18,"paramType":3,"paramOrder":22,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"19","name":"BTM输入","code":"007003","type":"007","leve":"1","displayOrder":0,"description":"设定应答器数据信息","scriptContent":"ASTS_SetBTMInput(p1,p2,p3,p4);","attributes":[{"id":"6F58871B9B33492CA5D4050B9DFFE426","code":"007003001","name":"BTM数据","required":"1","type":"3","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":1,"paramType":3,"paramOrder":1,"range":"","dict":"BTM"},{"id":"0A7E2F0D16F94A38B4119A40B4DD7AB9","code":"007003002","name":"厂家标志","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"037"},{"id":"176CDDDD744548BA90F790BEBC81A4C3","code":"007003003","name":"错误标志","required":"1","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"041"},{"id":"6841334E4030415FBF5B7BBA5C0473EA","code":"007003004","name":"开关","required":"1","type":"3","unit":"","value":"2","displayValue":"","defaultValue":"2","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":"026"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"18","name":"IC卡输入","code":"007002","type":"007","leve":"1","displayOrder":0,"description":"设定IC卡输入信息","scriptContent":"ASTS_SetIcInput(p1);","attributes":[{"id":"772BC3A224A94EF08439CA9A275710EF","code":"007002001","name":"IC卡数据","required":"1","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":3,"paramOrder":1,"range":"","dict":"JSSJ"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"007007","name":"模式切换","code":"007007","type":"007","leve":"1","displayOrder":0,"description":"切换LKJ的工作模式","scriptContent":"ASTS_SetLKJWorkingMode(p1);","attributes":[{"id":"124169C59DD94897A6E29FDCE92992E3","code":"007007001","name":"工作模式","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"042"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"007008","name":"隔离开关","code":"007008","type":"007","leve":"1","displayOrder":0,"description":"设定送给隔离插件的隔离开关转换信号","scriptContent":"ASTS_SetGeLiKaiGuan(p1);","attributes":[{"id":"F7D7AC5EF1894014BF6E6496716E053E","code":"007008001","name":"隔离开关位置","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"029"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"0D7B7DB9FEBC4D5493498D82235B8F85","name":"特殊行车","code":"007009","type":"007","leve":"1","displayOrder":0,"description":"设定特殊行车信息给主控单元。","scriptContent":"ASTS_SetTeShuXingChe(p1,p2,p3);","attributes":[{"id":"8D2BA8CEC21D4EA599E534BC3F7C941C","code":"007009001","name":"特殊行车类型","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"061"},{"id":"C2661E3B7ADD4A59B20E2D3A84CFC706","code":"007009002","name":"凭证信息","required":"1","type":"1","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""},{"id":"90B9F1A00BF7435AA3E1D1142E41547F","code":"007009003","name":"调度命令号","required":"1","type":"1","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"82FC2B06AE8540D1A0FA16106F110750","name":"功能按键","code":"007010","type":"007","leve":"1","displayOrder":0,"description":"发送功能按键给主控单元。","scriptContent":"ASTS_SetFuncKeyToZhuKong(p1);","attributes":[{"id":"FC80B6B535A84D88B5EA514FCC0D2AC5","code":"007010001","name":"按键代码","required":"0","type":"3","unit":"","value":"0x01","displayValue":"","defaultValue":"0x01","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"062"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"F1FFCDB3CB834963A81600BBFAAAD7EB","name":"输入股道号","code":"007011","type":"007","leve":"1","displayOrder":0,"description":"设定股道号给主控单元。","scriptContent":"ASTS_SetGuDaoHao(p1,p2);","attributes":[{"id":"472C83FE7D11495A8B534BEB24A0CBBA","code":"007011001","name":"本分区股道号","required":"0","type":"1","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"8E344843FDF34BF59ED5DABB5B36C1F6","code":"007011002","name":"下一分区股道号","required":"0","type":"1","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"33CC2161B9A44EEB821C817768386E26","name":"输入支线号","code":"007012","type":"007","leve":"1","displayOrder":0,"description":"设定支线号给主控单元。","scriptContent":"ASTS_SetZhiXianHao(p1,p2);","attributes":[{"id":"D5EC568789074B50BDC0C3AAF3AF25A6","code":"007012001","name":"本分区支线号","required":"0","type":"1","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"F12A2523567549D79B0297801B7DABBF","code":"007012002","name":"下一分区支线号","required":"0","type":"1","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"C63087AF98A746E5B9D44C75507F3A33","name":"区段类型","code":"007013","type":"007","leve":"1","displayOrder":0,"description":"设定区段类型，发送给主控单元。","scriptContent":"ASTS_SetQuDuanLeiXing(p1);","attributes":[{"id":"13C3734A37034C3995B32A577E9DF5D3","code":"007013001","name":"区段类型","required":"0","type":"3","unit":"","value":"0x01","displayValue":"","defaultValue":"0x01","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"063"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"E2CF693FA7BA4654B890840EF6758547","name":"制动试验","code":"007014","type":"007","leve":"1","displayOrder":0,"description":"发送制动试验控制命令给主控单元。","scriptContent":"ASTS_SetZhiDongShiYan(p1,p2);","attributes":[{"id":"674F6E29893F46B58438DC29ED995399","code":"007014001","name":"制动试验动作","required":"0","type":"3","unit":"","value":"0x31","displayValue":"","defaultValue":"0x31","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"064"},{"id":"78EA430FD957459FAB056C1056DAA266","code":"007014002","name":"系别","required":"0","type":"3","unit":"","value":"0x66","displayValue":"","defaultValue":"0x66","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"065"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"5A548E83077745CDA9BC764A8B8F83B6","name":"双针表试验","code":"007015","type":"007","leve":"1","displayOrder":0,"description":"发送双针表试验控制命令给主控单元。","scriptContent":"ASTS_SetShuangZhenBiaoShiYan(p1);","attributes":[{"id":"C2AD1BE8541347BAB3B807E99FD28016","code":"007015001","name":"双针表试验动作","required":"0","type":"3","unit":"","value":"0x02","displayValue":"","defaultValue":"0x02","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"066"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"42A8C2880CD7478187C3DDC7542F9BC6","name":"LKJ换装","code":"007016","type":"007","leve":"1","displayOrder":0,"description":"根据参数中的换装文件类型和ID，检查LKJ-15S 的软件或数据版本。与LKJ数据总线上广播的版本进行比对，若发现不同则自动启动换装过程，如果版本相同则不进行任何操作。","scriptContent":"ASTS_LKJ_HuanZhuang(p1,p2);","attributes":[{"id":"0549225BFD004A27AF3D36456387D8E7","code":"007016002","name":"软件类型","required":"0","type":"3","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":1,"paramType":3,"paramOrder":2,"range":"","dict":"072"},{"id":"0396A190E0CA42F99595B9D93995006D","code":"007016001","name":"文件名称","required":"0","type":"6","unit":"","value":"请选择","displayValue":"","defaultValue":"请选择","displayOrder":2,"paramType":3,"paramOrder":1,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"328CD7928E004D89B1A1FC2257F9FB06","name":"初始化ASTS","code":"007017","type":"007","leve":"1","displayOrder":0,"description":"初始化ASTS工作环境，让LKJ、ASTS信号调理单元、仿真控制软件都恢复到初始状态。","scriptContent":"ASTS_InitASTSDevice(p1);","attributes":[{"id":"D1BD9CEB899244878B49F5C3F9A3F5C3","code":"007017001","name":"初始化类型","required":"0","type":"1","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"21","name":"其他文件类","code":"008001","type":"008","leve":"1","displayOrder":0,"description":"设定其他文件类输入数据信息","scriptContent":"ASTS_SetDeviceInput(p1,p2);","attributes":[{"id":"2C5690FBAA0C42A4B5316A9D09924C5F","code":"000000072","name":"数据文件ID","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":1,"paramType":3,"paramOrder":1,"range":"","dict":"SJWJ"},{"id":"5098A7055DDA44638FC622E34FD424D0","code":"000000073","name":"发送开关","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"026"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"30","name":"LAIS接口检查","code":"008002","type":"008","leve":"1","displayOrder":0,"description":"检查LAIS通信是否正常","scriptContent":"ASTS_SetCheckLAISInterface(p1);","attributes":[{"id":"F3FFBE7899C440E9BF0F8843535A921D","code":"008001001","name":"检查开始持续时间","required":"0","type":"1","unit":"S","value":"5","displayValue":"","defaultValue":"5","displayOrder":10,"paramType":1,"paramOrder":10,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"31","name":"CMD接口检查","code":"008003","type":"008","leve":"1","displayOrder":0,"description":"检查CMD通信是否正常","scriptContent":"ASTS_SetCheckCMDInterface(p1);","attributes":[{"id":"BBE4F6DEE32940559889A19DF3745854","code":"008002001","name":"检查开始持续时间","required":"0","type":"1","unit":"S","value":"5","displayValue":"","defaultValue":"5","displayOrder":10,"paramType":1,"paramOrder":10,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"010010","name":"写入观察值","code":"010010","type":"010","leve":"1","displayOrder":0,"description":"写入观察值","scriptContent":"ASTS_WriteSpyValue(p1,ASTS_GetLKJFlag(p2,p3));","attributes":[{"id":"F57DA6B538BD4D41B01B29DB3F9D3E30","code":"010010001","name":"注释","required":"0","type":"2","unit":"","value":"空","displayValue":"","defaultValue":"空","displayOrder":1,"paramType":3,"paramOrder":1,"range":"","dict":""},{"id":"2E259142516742D1B90E27B45B933593","code":"009001002","name":"系模标志","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"052"},{"id":"FA2217C9BDEC4B2FA9BC172CB27DA4D8","code":"009001003","name":"数据项","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"050"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"8F88CF2E98CA45E291236DDEC331042F","name":"ASTS电源控制","code":"010003","type":"010","leve":"1","displayOrder":0,"description":"分别控制主机、DMI、扩展单元、调理单元的电源。\n=0 断电\n=1 上电\n=-1 不改变状态","scriptContent":"ASTS_DevicePowerControl(p1,p2,p3,p4);","attributes":[{"id":"03EE785D3D4F410EB38DAD6245219F34","code":"010003001","name":"主机","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"057"},{"id":"A6F1B6C883C64295A9993EA6DF510E15","code":"010003002","name":"DMI","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"057"},{"id":"4573857DCF264FA7904F2BADA8DDA2B6","code":"010003003","name":"扩展单元","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"057"},{"id":"C8780C4A76D44A159D73806C0411B531","code":"010003004","name":"调理单元","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":"057"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"8D1F76AD88F24F1EA8E6A1B2E796BE9B","name":"自动回采","code":"010004","type":"010","leve":"1","displayOrder":0,"description":"=0：停止自动回采；=1：启动自动回采","scriptContent":"ASTS_SetOutputAutoVerify(p1);","attributes":[{"id":"3A929AB8C7E44861AF378B1A8919C05F","code":"010004001","name":"自动回采","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"059"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"23","name":"延时","code":"010001","type":"010","leve":"1","displayOrder":0,"description":"延时设定时间","scriptContent":"ASTS_Delay(p1);","attributes":[{"id":"A32C3FB532D3480FBF97649D707B49BA","code":"010001001","name":"延时时长","required":"0","type":"1","unit":"S","value":"5","displayValue":"","defaultValue":"5","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"6E6A4A3BFFC44161A0FE329791EC2636","name":"开始观测","code":"011001","type":"011","leve":"1","displayOrder":0,"description":"用于由手动录制脚本功能生成的基本用例。命令测试控制软件开始观测数据","scriptContent":"ASTS_StartMonitor(p1);","attributes":[{"id":"4316F1986D544FABAFC610603CB9491B","code":"011001001","name":"观测项目","required":"0","type":"2","unit":"","value":"{}","displayValue":"","defaultValue":"{}","displayOrder":1,"paramType":3,"paramOrder":1,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"576A4C6D068347ABADBC24B3520C0979","name":"停止观测","code":"011002","type":"011","leve":"1","displayOrder":0,"description":"用于由手动录制脚本功能生成的基本用例。命令测试控制软件停止观测数据，并依照标准源文件对观察的数据进行检验，将检验结果写入数据库。","scriptContent":"ASTS_StopMonitorAndCheck(p1);","attributes":[{"id":"0497FE01EDA243D2A5FC6A6753D66B0E","code":"011002001","name":"标准源文件ID","required":"0","type":"2","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":1,"paramType":3,"paramOrder":1,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"A32FF055E56D402084D60CA6E7862913","name":"延时到","code":"011003","type":"011","leve":"1","displayOrder":0,"description":"延时到特定时刻。","scriptContent":"ASTS_DelayTo(p1);","attributes":[{"id":"E8DB62F743B44843B72AB73DD4FB5766","code":"011003001","name":"绝对时刻","required":"0","type":"1","unit":"ms","value":"0","displayValue":"","defaultValue":"0","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"4D6264ADBE754B65BA03A7618C39FE9D","name":"开始录制","code":"011004","type":"011","leve":"1","displayOrder":0,"description":"重置开始录制的时间","scriptContent":"ASTS_ResetTimeForRecord();","attributes":[],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"015001","name":"分支","code":"015001","type":"015","leve":"2","displayOrder":0,"description":"分支","scriptContent":null,"attributes":[{"id":"FBD2077E02404C6894C0434D43354079","code":"009010002","name":"期望分支","required":"0","type":"3","unit":"","value":"True","displayValue":"","defaultValue":"True","displayOrder":1,"paramType":2,"paramOrder":1,"range":"","dict":"056"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"016001","name":"色灯循环","code":"016001","type":"016","leve":"2","displayOrder":0,"description":"色灯循环","scriptContent":null,"attributes":[{"id":"44278ACE44B84784A6F2055BD4877334","code":"004002001","name":"总线类型","required":"0","type":"3","unit":"","value":"2","displayValue":"","defaultValue":"2","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"022"},{"id":"9B46B71AB2BC4B4580E0C6719C7D9206","code":"016001001","name":"色灯信号","required":"0","type":"4","unit":"","value":"3","displayValue":"","defaultValue":"3","displayOrder":2,"paramType":4,"paramOrder":2,"range":"","dict":"023"},{"id":"68E4050A522D4FF1B35AD56B43922C8A","code":"004002003","name":"信号输出","required":"0","type":"3","unit":"","value":"3","displayValue":"","defaultValue":"3","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"060"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"016002","name":"循环","code":"016002","type":"016","leve":"2","displayOrder":0,"description":"一般循环","scriptContent":null,"attributes":[{"id":"72EB857548554B43A8BAC287A524E293","code":"011001002","name":"超时时间","required":"0","type":"1","unit":"S","value":"1800","displayValue":"","defaultValue":"1800","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"6B96AAFE839042F8BB2459D7BC69F5D6","name":"循环等待","code":"016003","type":"016","leve":"2","displayOrder":0,"description":"循环等待，至某条件（或条件组合）成立时退出，其间自动消除报警信息，并可以设定速度。","scriptContent":null,"attributes":[{"id":"9A641C1E66A54CBCBFEBAE2E8C445A68","code":"011001002","name":"超时时间","required":"0","type":"1","unit":"S","value":"1800","displayValue":"","defaultValue":"1800","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":""},{"id":"D1A9872DAAF449B99A5EE31A342A4CFE","code":"001003006","name":"限速差值","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"22","name":"总线数据","code":"009001","type":"009","leve":"3","displayOrder":0,"description":"获取总线数据判断是否满足条件","scriptContent":"p1 ( ASTS_GetLKJFlag(p2,p3) p4 p5)","attributes":[{"id":"08317FCE1A464F64917F557F8B362117","code":"009001001","name":"与上个条件关系","required":"0","type":"3","unit":"","value":" ","displayValue":"","defaultValue":" ","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"051"},{"id":"203A31C659E44C708AE44A9DFF86C781","code":"009001002","name":"系模标志","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"052"},{"id":"27BED02C9A844303B64397114AFDC1A1","code":"009001003","name":"数据项","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"050"},{"id":"F1BC8382A8FA41A69C8D2338933CE1AE","code":"009001004","name":"关系符","required":"0","type":"3","unit":"","value":"==","displayValue":"","defaultValue":"==","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":"053"},{"id":"995ED24F4EB24992B713E19985D57E2D","code":"009001005","name":"结果值","required":"0","type":"6","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"009002","name":"DMI显示","code":"009002","type":"009","leve":"3","displayOrder":0,"description":"通过分析采集到的DMI图形数据，判断DMI显示内容是否与LKJ总线广播数据相一致。","scriptContent":"p1 (ASTS_DMIDisplayValid(p2)==True)","attributes":[{"id":"EA145FBDDEA946E984BDB88173CBEEA6","code":"009001001","name":"与上个条件关系","required":"0","type":"3","unit":"","value":" ","displayValue":"","defaultValue":" ","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"051"},{"id":"68A2568F2D004F36A9637CBD81D0AC09","code":"009002001","name":"DMI区域类型","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"044"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"009003","name":"DMI发音","code":"009003","type":"009","leve":"3","displayOrder":0,"description":"通过分析采集到的DMI发音数据，判断DMI是否正确发出了期待的语音。","scriptContent":"p1 (ASTS_DMIVoiceValid(p2,p3,p4)==True)","attributes":[{"id":"CC56CA7AF7D94B6AB77F003330A34C6C","code":"009001001","name":"与上个条件关系","required":"0","type":"3","unit":"","value":" ","displayValue":"","defaultValue":" ","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"051"},{"id":"B8EF116BB36042018DB0CD9A66FB8255","code":"009003001","name":"语音代码","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"043"},{"id":"70CB513E2E3542288B8B15A98F2670AF","code":"009003002","name":"延时时间","required":"0","type":"1","unit":"S","value":"3","displayValue":"","defaultValue":"3","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":""},{"id":"3C264691C065426E89CB7B4E66A03AEE","code":"009003003","name":"应该发声","required":"0","type":"3","unit":"","value":"True","displayValue":"","defaultValue":"True","displayOrder":4,"paramType":2,"paramOrder":4,"range":"","dict":"038"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"009004","name":"制动采集","code":"009004","type":"009","leve":"3","displayOrder":0,"description":"通过分析ASTS平台采集的LKJ制动输出状态，判断LKJ是否正确输出了制动指令。","scriptContent":"p1(ASTS_BrakeStatus(p2)== p3)","attributes":[{"id":"2BA8EDC9D5E34F73A4DBBE3EC9755628","code":"009001001","name":"与上个条件关系","required":"0","type":"3","unit":"","value":" ","displayValue":"","defaultValue":" ","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"051"},{"id":"49D0BBB25CEB493DA48264B74B700921","code":"009004001","name":"制动状态","required":"0","type":"3","unit":"","value":"1","displayValue":"","defaultValue":"1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"039"},{"id":"944521F796724E68871BD63D449FCDE1","code":"009004003","name":"判断结果","required":"0","type":"3","unit":"","value":"True","displayValue":"","defaultValue":"True","displayOrder":3,"paramType":2,"paramOrder":3,"range":"","dict":"038"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"72BCC3E2BAA149DAAE3F6CBC0C4DFBCC","name":"限速匹配","code":"009005","type":"009","leve":"3","displayOrder":0,"description":"侦听LKJ-15S主控插件发出的制动曲线信息，查询是否存在条件设定的制动曲线信息。","scriptContent":"p1(ASTS_VerifyZhiDongQuXian(p2,p3,p4,p5,p6) ==True)","attributes":[{"id":"B09341C661AF45A98D42D565C3FF862D","code":"009001001","name":"与上个条件关系","required":"0","type":"3","unit":"","value":" ","displayValue":"","defaultValue":" ","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"051"},{"id":"844C77F669354DFB8E33C4531F178CAA","code":"001002001","name":"车站名称","required":"1","type":"6","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"CZMC"},{"id":"2991A24C6454406F835E56AEAA528655","code":"001002002","name":"信号机类型","required":"0","type":"3","unit":"","value":"-1","displayValue":"","defaultValue":"-1","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"027"},{"id":"EF105CAB2BA54CCE9B1C701DD6C862D8","code":"001002003","name":"信号机编号","required":"1","type":"2","unit":"","value":"","displayValue":"","defaultValue":"","displayOrder":4,"paramType":3,"paramOrder":4,"range":"","dict":""},{"id":"494A6D68AF964078B01EBDB490B88DAC","code":"009005002","name":"距信号机距离","required":"0","type":"1","unit":"米","value":"0","displayValue":"","defaultValue":"0","displayOrder":5,"paramType":1,"paramOrder":5,"range":"","dict":""},{"id":"5C991DF82DBF450F907C0C63EEAA53D2","code":"009005001","name":"限速值","required":"0","type":"1","unit":"km/h","value":"0","displayValue":"","defaultValue":"0","displayOrder":6,"paramType":1,"paramOrder":6,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"4571C2C139BB4799BB8249FB01B1586F","name":"LKJ状态自检","code":"009006","type":"009","leve":"3","displayOrder":0,"description":"记录LKJ主机、DMI、扩展单元自检状态，自检异常模块名称","scriptContent":"p1(ASTS_CheckLKJStatus(p2,p3,p4)==True)","attributes":[{"id":"271F782B233F486886442E2D4B10E288","code":"009001001","name":"与上个条件关系","required":"0","type":"3","unit":"","value":" ","displayValue":"","defaultValue":" ","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"051"},{"id":"6DE5D631A75943EC966E898BA5F5B5FF","code":"009006001","name":"主机","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":2,"paramType":1,"paramOrder":2,"range":"","dict":"058"},{"id":"E80A91EB57AE45059E7DD1E7AD806D53","code":"009006002","name":"DMI","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":3,"paramType":1,"paramOrder":3,"range":"","dict":"058"},{"id":"FDB3F9BF01BC4BF5B1941CBAC5C78F6A","code":"009006003","name":"扩展单元","required":"0","type":"3","unit":"","value":"0","displayValue":"","defaultValue":"0","displayOrder":4,"paramType":1,"paramOrder":4,"range":"","dict":"058"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"B6E0110E47234533BEE0F5741024DA16","name":"DMI检测","code":"009007","type":"009","leve":"3","displayOrder":0,"description":"检测DMI图像是否正常","scriptContent":"p1(ASTS_CheckDMIPic()==True)","attributes":[{"id":"3CA152C5F81C43BAACAED3A8E6FD7820","code":"009001001","name":"与上个条件关系","required":"0","type":"3","unit":"","value":" ","displayValue":"","defaultValue":" ","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"051"}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]},{"id":"037EDAA582514E48B767BD86B8BABCB7","name":"版本检测","code":"009008","type":"009","leve":"3","displayOrder":0,"description":"系统版本检测控件，可以检测主机、DMI、扩展单元版本是否符合预期，并记录不符的插件或模块版本","scriptContent":"p1(ASTS_VerifyLKJSoftVersion(p2)==True)","attributes":[{"id":"8E6E35912C7140639D3CD9BC090581CD","code":"009001001","name":"与上个条件关系","required":"0","type":"3","unit":"","value":" ","displayValue":"","defaultValue":" ","displayOrder":1,"paramType":1,"paramOrder":1,"range":"","dict":"051"},{"id":"8E6C5E4D2D984FDAA4FD272C672EB072","code":"009008001","name":"软件版本","required":"0","type":"2","unit":"","value":"{}","displayValue":"","defaultValue":"{}","displayOrder":2,"paramType":3,"paramOrder":2,"range":"","dict":""}],"childrens":[],"leftChildrens":[],"rightChildrens":[],"conditionList":[]}];// 请求得到基本用例信息
//						for(var i = 0;i<elementData.length;i++){
//							if(elementData[i].id == '22'){//设置默认第一个速度为数字输入框
//								elementData[i].attributes[4].type ='1';
//							}
//						}
//						var htmla = "";
//						for (var i = 0; i < elementData.length; i++) {
//							var type = elementData[i].type;
//							$("#" + type).empty();
//							$("#home").empty();
//							$("#home2").empty();
//							$("#Graphics").empty();
//						}
//						// 遍历获取到的用例元素放入相应位置并绑定拖动事件
//						for (var i = 0; i < elementData.length; i++) {
//							var lev = elementData[i].leve;
//							var type = elementData[i].type;
//							if (lev == "1") {
//								var c = $("#home div[id='" + type + "']");
//								if (c.length > 0) {
//									$("#" + type).append(
//											"<a draggable='true' id='"
//													+ elementData[i].id + "' "
//													+ "name='"
//													+ elementData[i].name
//													+ "' type='"
//													+ elementData[i].type
//													+ "' code='"
//													+ elementData[i].code
//													+ "' leve='1'>"
//													+ elementData[i].name
//													+ "</a>");
//								} else {
//									$("#home").append(
//											"<div id='" + type + "'></div>");
//									$("#" + type).append(
//											"<a draggable='true' id='"
//													+ elementData[i].id + "' "
//													+ "name='"
//													+ elementData[i].name
//													+ "' type='"
//													+ elementData[i].type
//													+ "' code='"
//													+ elementData[i].code
//													+ "' leve='1'>"
//													+ elementData[i].name
//													+ "</a>");
//								}
//							} else if (elementData[i].leve == "2") {
//								// 逻辑控件
//								var c = $("#home2 div[id='" + type + "']");
//								if (c.length > 0) {
//									$("#" + type).append(
//											"<a draggable='true' id='"
//													+ elementData[i].id + "' "
//													+ "name='"
//													+ elementData[i].name
//													+ "' type='"
//													+ elementData[i].type
//													+ "' code='"
//													+ elementData[i].code
//													+ "' leve='2'>"
//													+ elementData[i].name
//													+ "</a>");
//								} else {
//									$("#home2").append(
//											"<div id='" + type + "'></div>");
//									$("#" + type).append(
//											"<a draggable='true' id='"
//													+ elementData[i].id + "' "
//													+ "name='"
//													+ elementData[i].name
//													+ "' type='"
//													+ elementData[i].type
//													+ "' code='"
//													+ elementData[i].code
//													+ "' leve='2'>"
//													+ elementData[i].name
//													+ "</a>");
//								}
//							} else if (elementData[i].leve == "3") {
//								var c = $("#Graphics div[id='" + type + "']");
//								if (c.length > 0) {
//									$("#" + type).append(
//											"<a draggable='true' id='"
//											+ elementData[i].id + "' " + "name='"
//											+ elementData[i].name + "' type='"
//											+ elementData[i].type + "' code='"
//											+ elementData[i].code
//											+ "' leve='3' elementId='"
//											+ elementData[i].elementId + "' >"
//											+ elementData[i].name + "</a>");
//								} else {
//									$("#Graphics").append(
//											"<div id='" + type + "'></div>");
//									$("#" + type).append(
//											"<a draggable='true' id='"
//											+ elementData[i].id + "' " + "name='"
//											+ elementData[i].name + "' type='"
//											+ elementData[i].type + "' code='"
//											+ elementData[i].code
//											+ "' leve='3' elementId='"
//											+ elementData[i].elementId + "' >"
//											+ elementData[i].name + "</a>");
//								}
//							}
//						}
//						for (var i = 0; i < elementData.length; i++) {
//							if($("#" + elementData[i].id) == null || $("#" + elementData[i].id)[0] == null){
//								continue;
//							}
//							$("#" + elementData[i].id)[0].ondragstart = function(
//									ev) {
//								ev = ev || window.event;
//								// 设置数据，保存在dataTransfer中的数据只能在drop事件处理函数中处理
//								ev.dataTransfer.setData("id",
//										ev.currentTarget.id);
//								ev.dataTransfer.setData("name",
//										ev.currentTarget.name);
//								ev.dataTransfer.setData("type",
//										ev.currentTarget.type);
//								ev.dataTransfer.setData("leve",
//										ev.target.attributes["leve"].value);
//								ev.dataTransfer.setData("code",
//										ev.target.attributes["code"].value);
//								currentObj = {};
//								currentObj.type = ev.target.type;
//								currentObj.leve = ev.target.attributes["leve"].value;
//								currentObj.code = ev.target.attributes["code"].value;
//							};
//						}
//					} else {
//						danger(data.errorInfo);
//					}
//				}
//			});
}
// 基本用例保存
function baseCaseSave(addBaseCaseId, caseElements) {
//	//检查基本用例数据中色灯循环控件是否选择色灯，检查基本用例分支和循环控件是否有条件
//	if(!checkCaseElements(caseElements)){
//		warning(failMsg);
//		return;
//	}
//	//重置所有元素为不选中状态
//	resetSelected();
//	// 保存按钮，保存数据
//	var sendDataArray = reSetSendData(caseElements);
//	console.log(sendDataArray);
//	$.ajax({
//		type : "POST",
//		url : "../../../basecase/saveCaseAndElement",
//		data : {
//			"caseId" : addBaseCaseId,
//			"elements" : JSON.stringify(sendDataArray)
//		},
//		success : function(data) {
//			var flag = data.flag;
//			if (flag == 0) {
//				var content = "保存成功!";
//				success(content);
//			} else {
//				var content = "保存失败！";
//				danger(content);
//			}
//		}
//	});
}
//去除前台处理的dicMu
function reSetSendData(caseElements){
	var copyArray = [].concat(JSON.parse(JSON.stringify(caseElements)));
	for(var i = 0;i<copyArray.length;i++){
		reSetSendDataLoop(copyArray[i]);
	}
	
	return copyArray;
}
function reSetSendDataLoop(obj){
	for(var i = 0;i<obj.attributes.length;i++){
		obj.attributes[i].dicMu = [];
		if(obj.self_softChangeList){
			obj.self_softChangeList = [];
		}
	}
	
	for(var i = 0;i<obj.childrens.length;i++){
		reSetSendDataLoop(obj.childrens[i]);
	}
	
	for(var i = 0;i<obj.leftChildrens.length;i++){
		reSetSendDataLoop(obj.leftChildrens[i]);
	}
	for(var i = 0;i<obj.rightChildrens.length;i++){
		reSetSendDataLoop(obj.rightChildrens[i]);
	}
	
	if(obj.conditionList){
		for(var i = 0;i<obj.conditionList.length;i++){
			reSetSendDataLoop(obj.conditionList[i]);
		}
	}
}
// 展示条件轴内的条件组合
function showConditions(combination) {
	var showcombination = combination.childrenAttr;// 拿到需要展示的条件组合
	for (var i = 0; i < showcombination.length; i++) {// 遍历条件组合数据
		var divs = $("<div class='curs'></div>");// 存放需要展示的条件组合
		// 展示第一个框 and or
		if (showcombination[i].parentRelation == "null"
				|| showcombination[i].parentRelation == null
				|| showcombination[i].parentRelation == "") {
		} else {
			divs
					.append($("<select class='andor' disabled='true'><option>"
							+ showcombination[i].parentRelation
							+ "</option></select>"));
		}

		// 展示第二个框，系别
		if (showcombination[i].departmentId == "null"
				|| showcombination[i].departmentId == null
				|| showcombination[i].departmentId == "") {
		} else {
			if (showcombination[i].departmentId == "1") {
				divs
						.append($("<select class='department' disabled='true'><option id='1'>I系A模</option></select>"));
			} else if (showcombination[i].departmentId == "3") {
				divs
						.append($("<select class='department' disabled='true'><option id='2'>I系A/B模</option></select>"));
			} else if (showcombination[i].departmentId == "4") {
				divs
						.append($("<select class='department' disabled='true'><option id='2'>II系A模</option></select>"));
			} else if (showcombination[i].departmentId == "8") {
				divs
						.append($("<select class='department' disabled='true'><option id='2'>II系B模</option></select>"));
			} else if (showcombination[i].departmentId == "12") {
				divs
						.append($("<select class='department' disabled='true'><option id='2'>II系A/B模</option></select>"));
			} else {
				divs
						.append($("<select class='department' disabled='true'><option id='0'>四模</option></select>"));
			}

		}

		// 展示第二个框,灯,速度，压力
		if (showcombination[i].conditionId) {
			divs
					.append($("<select class='condition' disabled='true'><option id='"
							+ showcombination[i].conditionId
							+ "' data='"
							+ showcombination[i].script
							+ "'>"
							+ showcombination[i].conditionName
							+ "</option></select>"));
		}
		// 第三个框 <= >= =
		if (showcombination[i].relation) {
			divs.append($("<select class='symbol' disabled='true'><option>"
					+ showcombination[i].relation + "</option></select>"));
		}
		// 第四个框,用户设置的值
		var value = showcombination[i].displayName;
		if (value == "" || value == null) {
			value = showcombination[i].value;
			for (var k = 0; k < conditions.length; k++) {
				if (conditions[k].id == showcombination[i].conditionId) {
					if (conditions[k].dicList) {// 此时最后一个框为文字
						for (var m = 0; m < conditions[k].dicList.length; m++) {
							if (conditions[k].dicList[m].id == showcombination[i].value) {
								value = conditions[k].dicList[m].name;
							}
						}
					}
				}
			}
		}
		divs.append($("<input class='enters' id=" + showcombination[i].value
				+ " value=" + value + " readOnly></input>"));
		// 添加一个删除按钮
		divs.append("<button class='delete'>删除</button>");
		var addCondition = $("<div class='addCondition'></div>");
		addCondition.append(divs);
		$("#elementContents").append(addCondition);

		updateRelationData();
	}
	// 给删除按钮注册事件
	$(".addCondition").on('click', 'button', function deletes() {// 删除新建的条件组合
		if (!baseCaseEditeBool) {
			return;
		}
		$(this).parent().parent().remove();
		updateRelationData();
	});
}
// 显示右侧属性信息
function showAttribute(selectElement, caseElements) {
	var shuXing = selectElement.attributes;// 拿到所有的data数据
	$('#externalParameter').css('display', 'none');// 默认外部参数的div为隐藏状态
	$('#controlDescription').css('display', 'block');
	$('#shuxingContent').css('display', 'block');
	if (shuXing.length > 0) {
		var trainType = "";// 列车类型
		var trainBZ = "";// 标识
		for (var j = 0; j < shuXing.length; j++) {
			// 通过data的type属性判断input的类型
			// input是文本输入框且data数据中的ranger不是null时，获取限定值
			var shuxing = shuXing[j];
			var value1 = shuxing.value;
			var name = shuxing.name;
			var displayValue = shuxing.displayValue;
			if (value1 == null) {
				value1 = shuxing.defultValue;
			}
			if (shuxing.type == "1") {
				// 拿到输入数字的限定值
				var range = shuxing.range;
				var rangValue = "";
				var div = "";
				if (range != null) {
					var nums = range.split(',');
					var minnum = parseInt(nums[0]);
					var maxnum = parseInt(nums[1]);
					rangValue = "min='" + minnum + "' max='" + maxnum + "'";
				}
				if (shuxing.unit) {
					div = ("<div class='defaultProperty'>"
							+ "<span>"
							+ shuxing.name
							+ "</span>"
							+ "<input type='number' id='"
							+ shuxing.id
							+ "' name='"
							+ name
							+ "' code='" + shuxing.code
							+ "' value='"
							+ value1
							+ "'"
							+ rangValue
							+ " onInput='set_a_value(this)'><span style='width:40px;margin-left:5px'>"
							+ shuxing.unit + "</span></div>");
				} else {
					div = ("<div class='defaultProperty'>" + "<span>"
							+ shuxing.name + "</span>"
							+ "<input type='number' id='" + shuxing.id
							+ "' code='" + shuxing.code
							+ "' name='" + name + "' value='" + value1 + "'"
							+ rangValue + " onInput='set_a_value(this)'>" + "</div>");
				}
				shuxing.displayValue = value1;
				if (shuxing.required == "0") {
					$('#shuxingContent').css('display', 'block');
					$("#elementContents").append(div);
				} else {
					
				}

			} else if (shuxing.type == "2") {// 文本输入框
				if (value1 == "null") {
					value1 = "-1";
				}
				var div = "";
				if (shuxing.unit) {
					div = ("<div class='defaultProperty'>"
							+ "<span>"
							+ shuxing.name
							+ "</span>"
							+ "<input  type='text' id='"
							+ shuxing.id
							+ "' name='"
							+ name
							+ "' code='" + shuxing.code
							+ "' value='"
							+ value1
							+ "'"
							+ " onInput='set_a_value(this)'><span style='width:40px;margin-left:5px'>"
							+ shuxing.unit + "</span></div>");
				} else {
					div = ("<div class='defaultProperty'>" + "<span>"
							+ shuxing.name + "</span>" + "<input  type='text' id='"
							+ shuxing.id + "' name='" + name+ "' code='" + shuxing.code + "' value='"
							+ value1 + "'" + " onInput='set_a_value(this)'>" + "</div>");
				}
				shuxing.displayValue = value1;
				if (shuxing.required == "0") {
					$('#shuxingContent').css('display', 'block');
					$("#elementContents").append(div);
				} else {
					
				}
			}else if (shuxing.type == "3") {// 下拉框单选
				var div = "";
				div = ("<div class='defaultProperty'>" + "<span>"
						+ shuxing.name + "</span>" + "<select id='"
						+ shuxing.id + "' value= '" + value1
						+ "' name='" + shuxing.code
						+ "' code='" + shuxing.code
						+ "' onchange='set_a_value(this)'>"
						+ "</select>" + "</div>");

				if (shuxing.required == "0") {
					$('#shuxingContent').css('display', 'block');
					$("#elementContents").append(div);
				} else {
					
				}
				if (displayValue != null && value1 != "null") {
					if (name == "007004010" || name == "007004011"
							|| name == "007004013" || name == "007004014"
							|| name == "007004015") {
						$("#" + shuxing.id).append(
								"<option id=" + value1
										+ " selected='selected' >"
										+ displayValue + "</option>");
					}
				}
				var dic = getSelectListByCode(shuxing.dict);
				var copyDic = [].concat(JSON.parse(JSON.stringify(dic)));
				if(shuxing.dict =='051'){
					if(shuxing.self_conditionType!=null){
						if(shuxing.self_conditionType == 0){
							copyDic= getSelectListByCode(shuxing.dict);
							shuxing.dicMu  = [copyDic[0]];
						}else{
							copyDic.shift();
							shuxing.dicMu = copyDic;
						}
					}else{
						shuxing.dicMu = copyDic;
					}
				}else{
					shuxing.dicMu = copyDic;
				}
				//当下拉框默认值为“请选择”时，value=“请选择”，此时相当于值为空
				if(value1 == "请选择"){
					$("#" + shuxing.id).append(
							"<option id='-1' value= '请选择'>" + "请选择"
							+ "</option>");
				}
				if (shuxing.dict != null) {
					for (var i = 0; i < shuxing.dicMu.length; i++) {
						var dicId = shuxing.dicMu[i].id;
						var dicName = shuxing.dicMu[i].name;
						if (value1 == dicId) {
							$("#" + shuxing.id).append(
									"<option id='" + dicId + "'value='"
											+ dicId
											+ "' selected='selected' >"
											+ dicName + "</option>");
							shuxing.displayValue = dicName;
						} else {
							$("#" + shuxing.id).append(
									"<option id='" + dicId + "' value= '"
											+ dicId + "'>" + dicName
											+ "</option>");
						}
					}
				}
				
				//LKJ换装控件中软件类型和文件名称的切换联动
				if(shuxing.code == "007016002"){
					storeVersionByType = [];
					getLKJByType($("select[name='007016002']").val());
				}
			}else if (shuxing.type == "4") {// 下拉框多选
				var div = "";
				var dicMu = [];
				var selectedIdArray = [];
				if(value1!=""){
					selectedIdArray = value1.split(',');
				}
				if (shuxing.atrributeId == "78") {// 如果属性的ID是78
					$(".conditionsTemplate").remove();// 删除条件组合
					$(".headInformation").remove();// 删除头部信息
					generateConditions(shuxing);// 生成条件组合功能的函数
				} else {
					div = ("<div class='defaultProperty'>" + "<span>"
							+ shuxing.name + "</span>" + "<select class='multipleSelect' multiple='multiple' id='"
							+ shuxing.id + "' value= '" + value1
							+ "' name='" + name
							+ "' code='" + shuxing.code
							+ "' onchange='set_a_value(this)'>"
							+ "</select>" + "</div>");

					if (shuxing.required == "0") {
						$('#shuxingContent').css('display', 'block');
						$("#elementContents").append(div);
					} else {
						
					}
					dicMu= getSelectListByCode(shuxing.dict);
					shuxing.dicMu = dicMu;
					if (shuxing.dict != null) {
						for (var i = 0; i < dicMu.length; i++) {
							var dicId = dicMu[i].id;
							var dicName = dicMu[i].name;
							var bool = false;
							for(var k = 0;k<selectedIdArray.length;k++){
								if(selectedIdArray[k] == dicId){
									bool = true;
									break;
								}
							}
							if (bool) {
								$("#" + shuxing.id).append(
										"<option id='" + dicId + "'value='"
												+ dicName
												+ "' selected='selected' >"
												+ dicName + "</option>");
							} else {
								$("#" + shuxing.id).append(
										"<option id='" + dicId + "' value= '"
												+ dicName + "'>" + dicName
												+ "</option>");
							}
						}
					} 
				}
				$('.multipleSelect').multiselect( { enableClickableOptGroups: true,
			         enableCollapsibleOptGroups: true,
			         includeSelectAllOption: true
				});
			} else if (shuxing.type == "5") {
				div = ("<div class='defaultProperty'>"
						+ "<span style='display:inline;vertical-align:middle'>"
						+ shuxing.name
						+ "</span>"
						+ "<a class='input-group date' id='datetimepicker1' style='display:inline-block;vertical-align:middle'>"
						+ "<input type='text'  class='form-control'  id='"
						+ shuxing.id
						+ "' onChange='set_Time_value(this)' style='width: 160px; height: 30px;background-color:#161b2f;border:1px solid #53597B;color:#ffffff' />"
						+ "<span class='input-group-addon' style='float: left; width: 50px; height: 30px;background-color:#337ab7;border:1px solid #53597B'>"
						+ "<span id='datetimepicker2'  class='glyphicon glyphicon-calendar' style='width:25px;margin-left:0px;color:#e0ecff'></span></span></a>" + "</div>");
				if (shuxing.required == "0") {
					$('#shuxingContent').css('display', 'block');
					$("#elementContents").append(div);
				} else {
					
				}
				Datetime(shuxing, shuxing.id);
			}  else if (shuxing.type == "6") {// 始发站
				var dic = getSelectListByCode(shuxing.dict);
				var div = "";
				var code = shuxing.code;
				if (shuxing.atrributeId == "78") {// 如果属性的ID是78
					$(".conditionsTemplate").remove();// 删除条件组合
					$(".headInformation").remove();// 删除头部信息
					generateConditions(shuxing);// 生成条件组合功能的函数
				} else {
					if (code == "007004010") {// 起始站名 输入下拉
						div = "<div class='defaultProperty'>"
								+ "<span>"
								+ shuxing.name
								+ "</span>"
								+ "<input type='text' style='width:25px' name='"+code+"'  onkeyup='validate(this,1)'>"
								+ "<select id='"
								+ shuxing.id
								+ "' value= '"
								+ value1
								+ "' name='"
								+ code
								+ "' onchange='startStationChange(this)'></select></div>";
					} else if (shuxing.code == "007004013") {// 发车方向下拉选项
						div = ("<div class='defaultProperty'>" + "<span>"
								+ shuxing.name + "</span>" + "<select id='"
								+ shuxing.id + "' value= '" + value1
								+ "' name='" + code
								+ "' onchange='directionChange(this)'>"
								+ "</select>" + "</div>");
					} else if (shuxing.code == "007004014") {// 终止站
						div = "<div class='defaultProperty'>"
								+ "<span>"
								+ shuxing.name
								+ "</span>"
								+ "<input type='text' style='width:25px' onkeyup='validate(this,1)'>"
								+ "<select id='" + shuxing.id + "' value= '"
								+ value1 + "' name='" + code
								+ "' ></select></div>";
					} else if(shuxing.code == "007016001"){//LKJ换装控件中软件类型和文件名称的切换联动
						console.log(storeVersionByType);
						shuxing.dicMu = storeVersionByType;
						div = ("<div class='defaultProperty'>" + "<span>"
								+ shuxing.name + "</span>" + "<select id='"
								+ shuxing.id + "' value= '" + value1
								+ "' name='" + shuxing.code
								+ "' code='" + shuxing.code
								+ "' onchange='set_a_value(this)'>"
								+ "</select>" + "</div>");
					} else {
						div = ("<div class='defaultProperty'>" + "<span>"
								+ shuxing.name + "</span>" + "<select id='"
								+ shuxing.id + "' value= '" + value1
								+ "' name='" + code
								+ "' onchange='set_a_value(this)'>"
								+ "</select>" + "</div>");
					}

					if (shuxing.required == "0") {
						$('#shuxingContent').css('display','block');
						$("#elementContents").append(div);
					} else {
						
					}
					/**
					 * 如果是下拉框,则将其值设置为value
					 */
					if(displayValue != null && value1 != "null"){
						if (code == "007004010" || code == "007004011"
							|| code == "007004013" || code == "007004014"
							|| code == "007004015") {
							$("#" + shuxing.id).append(
									"<option id=" + value1
											+ " selected='selected' >"
											+ displayValue + "</option>");
						}
					}
					if(code!='007004003' && code!="007016001"){
						dicMu= getSelectListByCode(shuxing.dict);
						shuxing.dicMu = dicMu;
						if (shuxing.dict != null) {
							for (var i = 0; i < dicMu.length; i++) {
								var dicId = dicMu[i].id;
								var dicName = dicMu[i].name;
								if (value1 == dicId) {
									$("#" + shuxing.id).append(
											"<option id='" + dicId + "'value='"
											+ dicId
											+ "' selected='selected' >"
											+ dicName + "</option>");
								} else {
									$("#" + shuxing.id).append(
											"<option id='" + dicId + "' value= '"
											+ dicId + "'>" + dicName
											+ "</option>");
								}
							}
						}
					}
					//lkj控件中文件名称和软件类型联动特殊处理
					if(code=="007016001"){
						$("#" + shuxing.id).find("option").remove();
						shuxing.dicMu = storeVersionByType;
						for(var i = 0;i<storeVersionByType.length;i++){
							if (value1 == storeVersionByType[i].VERSION_ID) {
								$("#" + shuxing.id).append(
										"<option id='" + storeVersionByType[i].VERSION_ID + "'value='"
										+ storeVersionByType[i].VERSION_ID
										+ "' selected='selected' >"
										+ storeVersionByType[i].VERSION_NAME + "</option>");
							} else {
								$("#" + shuxing.id).append(
										"<option id='" + storeVersionByType[i].VERSION_ID + "' value= '"
										+ storeVersionByType[i].VERSION_ID + "'>" + storeVersionByType[i].VERSION_NAME
										+ "</option>");
							}
						}
					}
				}
			}
		}
	}
}

function set_Time_value(th) {// th this用来获取属性值，ys就是整个元素对象
	if (!checkDateTime($(th).val())) {// 输入的时间格式校验
		$(th).val('-1');
		return;
	}
	saves();
}

// 设置日期时间控件
function Datetime(shuxing, id) {
	$('#datetimepicker2').datetimepicker({
		language : 'zh-CN',// 显示中文
		format : 'yyyy-mm-dd hh:ii:ss',// 显示格式
		minView : 0,// 设置只显示到月份
		initialDate : new Date(),
		autoclose : true,// 选中自动关闭
		todayBtn : true,// 显示今日按钮
		locale : moment.locale('zh-cn'),
	}).on('changeDate', function(ev) {
		$('#' + id).val(formatDateTime(Number(ev.date.valueOf())));
		saves();
	});

	// 默认获取当前日期
	if (shuxing.value) {
		if (shuxing.value != -1) {
			document.getElementById(id).value = setTimeToTimeFormat(shuxing.value);
		} else {
			document.getElementById(id).value = shuxing.value;
		}
	} else {
		document.getElementById(id).value = "-1";
	}

}

// 根据时间数字转换为时间格式20180723140101 2018-07-24 13:35:08
function setTimeToTimeFormat(timeStr) {
	var timeFormat = "";
	var numArray = timeStr.split("");
	timeFormat = numArray[0] + numArray[1] + numArray[2] + numArray[3] + "-"
			+ numArray[4] + numArray[5] + "-" + numArray[6] + numArray[7] + " "
			+ numArray[8] + numArray[9] + ":" + numArray[10] + numArray[11]
			+ ":" + numArray[12] + numArray[13];
	return timeFormat;
}

// 生成条件组合功能的函数
function generateConditions(combination) {
	var departmentId = "1";// 选中的系别value
	var conditionId = "";// 选中name的option的ID
	var conditionVal = "";// 选中name的option的内容
	var symbolVal = "";// 选中的符号内容
	caseElementValId = combination.id;// 获取caseElementValid
	conditions = combination.conditions;// 拿到第一个下拉框的内容
	// 生成条件组合模板
	var createobj = jQuery("<div class='conditionsTemplate'>"
			+ "<select class='andor'>" + "<option></option>"
			+ "<option>and</option>" + "<option>or</option>" + "</select>"
			+ "<select class='department'>" + "<option id='1'>I系A模</option>"
			+ "<option id='3'>I系A/B模</option>"
			+ "<option id='4'>II系A模</option>" + "<option id='8'>II系B模</option>"
			+ "<option id='12'>II系A/B模</option>"
			+ "<option id='15'>四模</option>" + "</select>"
			+ "<select class='condition'>" + "</select>"
			+ "<select class='symbol'>" + "<option>=</option>"
			+ "<option>></option>" + "<option>>=</option>"
			+ "<option><</option>" + "<option><=</option>"
			+ "<option>!=</option>" + "</select>"
			+ "<input class='showLabels' type = 'number'></input>"
			+ "<button class='showButton'>添加</button>" + "</div>");

	var div = $("<div class='conditionTemplate'></div>");// 创建存放条件模板的div
	$('#shuxingContent').css('display', 'block');
	$("#elementContents").append(div);// 插入到属性区域
	$(".conditionTemplate").append(
			"<h4 class='headInformation'>" + combination.text + "</h4>");
	$(".conditionTemplate").append(createobj);// 插入条件组合模板
	$(".conditionsTemplate .condition").append("<option></option>");

	$(".department").change(function() {
		departmentId = $(".department option:selected").attr("id");// 拿到被选中的option的id
	});

	for (var i = 0; i < conditions.length; i++) {
		var op = $("<option id=" + conditions[i].id + " data="
				+ conditions[i].script + ">" + conditions[i].name + "</option>");
		$(".conditionsTemplate .condition").append(op);
	}

	$(".condition")
			.change(
					function() {// 拿到被选中的option的ID
						conditionId = $(".condition option:selected")
								.attr("id");// 拿到被选中的option的ID
						conditionVal = $(".condition option:selected").val();// 拿到被选中的option的ID
						conditionData = $(".condition option:selected").attr(
								"data");// 拿到被选中的option的ID
						for (var i = 0; i < conditions.length; i++) {
							if (conditions[i].id == conditionId) {
								symbolVal = "=";
								if (conditions[i].dic != null) {// 条件组合第四个是下拉框
									// 如果里面有input和button标签时
									if ($(".conditionsTemplate").find(".enter").length !== 0
											&& $(".conditionsTemplate").find(
													".add").length !== 0) {
										$(".conditionsTemplate input").remove();
										$(".conditionsTemplate button")
												.remove();
										var dicList = conditions[i].dicList;// 拿到下拉框内的值
										$(".conditionsTemplate")
												.append(
														"<select class='dropDown'></select>");
										for (var k = 0; k < dicList.length; k++) {
											$(".dropDown").append(
													"<option id="
															+ dicList[k].id
															+ ">"
															+ dicList[k].name
															+ "</option>");
										}
										$(".conditionsTemplate")
												.append(
														"<button class='add'>添加</button>");
									} else {
										$(".conditionsTemplate .dropDown")
												.remove();
										$(".conditionsTemplate input").remove();
										$(".conditionsTemplate button")
												.remove();
										$(".conditionsTemplate")
												.append(
														"<select class='dropDown'></select>");
										var dicList = conditions[i].dicList;// 拿到下拉框内的值
										for (var k = 0; k < dicList.length; k++) {
											$(".dropDown").append(
													"<option id="
															+ dicList[k].id
															+ ">"
															+ dicList[k].name
															+ "</option>");
										}
										$(".conditionsTemplate")
												.append(
														"<button class='add'>添加</button>");
									}

									$(".add")[0].onclick = function() {
										if (!baseCaseEditeBool) {
											return;
										}
										adds(departmentId, andorVal,
												conditionId, conditionData,
												conditionVal, symbolVal);
									};

									// 如果是下拉框，那么关系默认为“=”
									$('.conditionsTemplate').find('.symbol')
											.empty();
									$('.conditionsTemplate').find('.symbol')
											.append("<option>=</option>");
									$('.conditionsTemplate').find('.symbol')
											.append("<option>!=</option>");

								} else {// 条件组合第四个是输入框,功能正常
									if ($(".conditionsTemplate").find(".enter").length == 0
											&& $(".conditionsTemplate").find(
													".add").length == 0
											|| $(".conditionsTemplate").find(
													".dropDown").length !== 0) {// 如果div内没有Inpuit标签
										$(".conditionsTemplate .dropDown")
												.remove();
										$(".conditionsTemplate input").remove();
										$(".conditionsTemplate button")
												.remove();
										$(".conditionsTemplate")
												.append(
														"<input class='enter' type='number'></input>");
										$(".conditionsTemplate")
												.append(
														"<button class='add'>添加</button>");
										$(".add")[0].onclick = function() {
											if (!baseCaseEditeBool) {
												return;
											}
											adds(departmentId, andorVal,
													conditionId, conditionData,
													conditionVal, symbolVal);
										};
									} else {
										return false;
									}
									// 如果是输入框，那么关系恢复默认多个符号
									$('.conditionsTemplate').find('.symbol')
											.empty();
									$('.conditionsTemplate')
											.find('.symbol')
											.append(
													"<option>=</option><option>></option><option>>=</option><option><</option><option><=</option><option>!=</option>");
								}
							}
						}
					});
	$(".symbol").change(function() { // 获取选中的符号
		symbolVal = $(".symbol option:selected").val();
	});
	$(".andor").change(function() { // 获取选中关系
		andorVal = $(".andor option:selected").val();
	});

	updateRelationData();
}
// 点击添加按钮，将新组成的条件生成
function adds(departmentId, andorVal, conditionId, conditionData, conditionVal,
		symbolVal) {
	saves();
	var h4 = $("<div class='addCondition'></div>"); // 存放修改后的条件组合
	var department = "";
	var andor = "";
	var enterId = "";
	var enterName = "";

	if (andorVal != "") {
		andor = "<select class='andor' disabled='true'>" + "<option>"
				+ andorVal + "</option>" + // 选中的是and还是or或者是空
				// //选中的是and还是or或者是空
				"</select>";
	}

	if (departmentId != "") {
		if (departmentId == "1") {
			department = "<select class='department' disabled='true'>"
					+ "<option id=" + departmentId + ">I系A模</option>"
					+ "</select>";
		} else if (departmentId == "3") {
			department = "<select class='department' disabled='true'>"
					+ "<option id=" + departmentId + ">I系A/B模</option>"
					+ "</select>";
		} else if (departmentId == "4") {
			department = "<select class='department' disabled='true'>"
					+ "<option id=" + departmentId + ">II系A模</option>"
					+ "</select>";
		} else if (departmentId == "8") {
			department = "<select class='department' disabled='true'>"
					+ "<option id=" + departmentId + ">II系B模</option>"
					+ "</select>";
		} else if (departmentId == "12") {
			department = "<select class='department' disabled='true'>"
					+ "<option id=" + departmentId + ">II系A/B模</option>"
					+ "</select>";
		} else {
			department = "<select class='department' disabled='true'>"
					+ "<option id=" + departmentId + ">四模</option>"
					+ "</select>";
		}
	}
	if ($(".conditionsTemplate").find(".enter").length !== 0) {// 如果是输入框
		enterName = $(".conditionsTemplate .enter").val();// 取到输入框的值
		if (enterName == "") {
			danger("输入值不能为空！");
			return;
		}
	}
	if ($(".conditionsTemplate").find(".dropDown").length !== 0) {// 如果是下拉框
		enterName = $(".dropDown option:selected").val();
		enterId = $(".dropDown option:selected").attr("id");
	}
	if (enterId != "") {
		enterId = "id='" + enterId + "'";
	}
	var currentObjs = jQuery(// 重新拼接成用户修改后的值
	"<div class='curs'>" + andor + department
			+ "<select class='condition' disabled='true'>" + "<option id="
			+ conditionId + " data=" + conditionData + ">" + conditionVal
			+ "</option>" + // 选中的name值
			"</select>" + "<select class='symbol' disabled='true'>"
			+ "<option >" + symbolVal + "</option>" + // 选中的符号
			"</select>" + "<input disabled='true' class='enters' " + enterId
			+ "value=" + enterName + " readonly></input>"
			+ "<button class='delete'>删除</button>" + "</div>");

	$("#elementContents").append(h4);// 存放新增的条件组合的div
	h4.append(currentObjs);// 添加的条件组合添加条件组合集合中
	$(".addCondition").on('click', 'button', function deletes() {// 删除新建的条件组合
		if (!baseCaseEditeBool) {
			return;
		}
		$(this).parent().parent().remove();
		saves();
		// 当条件数》=1时，则关系比不能为空
		updateRelationData();
	});

	// 当条件数》=1时，则关系比不能为空
	updateRelationData();
}
// 封装条件组合
function packagingCondition() {
	// 封装条件组合数据 childrenAttrs数组
	var childrenAttrs = [];
	// 拿到所有name，灯，速度，压力
	var conditionsObj = $(".addCondition .curs");
	for (var b = 0; b < conditionsObj.length; b++) {// 灯，速度，压力
		var condition = $(conditionsObj[b]);
		var departmentId = condition.children(".department").children("option")
				.attr("id");// 拿到对应的id
		var id = condition.children(".condition").children("option").attr("id");// 拿到对应的id
		var conditionName = condition.children(".condition").children("option")
				.val();
		var script = condition.children(".condition").children("option").attr(
				"data");// 拿到对应的script
		var parentRelation = "";// 与上一个条件的关系
		if (condition.children(".andor").children("option").length != 0) {
			parentRelation = condition.children(".andor").children("option")
					.val();
		}
		;
		var relation = condition.children(".symbol").children("option").val();
		var value = "";
		var enters = condition.children(".enters");
		var displayName = "";
		if (enters) {
			if (enters[0].id !== "") {
				value = enters[0].id;
				displayName = enters[0].value;
			} else {// 输入框
				value = enters[0].value;
			}
		}
		childrenAttrs.push({
			departmentId : departmentId,// 系别id
			parentRelation : parentRelation,
			caseElementValId : caseElementValId,
			conditionId : id,
			conditionName : conditionName,
			displayName : displayName,
			value : value,
			relation : relation,
			sort : b + 1, // 条件组合排序
			script : script,
			parentId : 0
		});
	}
	return childrenAttrs;
}
// 获取当前点击位置信息
function getEventPosition(ev) {
	var x = 0;
	var y = 0;
	if (ev.layerX || ev.layerX == 0) {
		x = ev.layerX;
		y = ev.layerY;
	} else if (ev.offsetX || ev.offsetX == 0) { // Opera
		x = ev.offsetX;
		y = ev.offsetY;
	}
	return {
		x : x,
		y : y
	};
}
// 根据基本用例id获取当前基本用例的详细信息并在canvas内绘制显示
function getElementsByCaseId(id, canvas, elementTypes) {// 通过ID获得新增用例的数据
	//获取数据中下拉框的数据
	getSelectListData(id);
	// 根据用例ID获取用例元素属性信息
//	$.ajax({
//		url : '../../../basecase/getBaseCaseContentByCaseId',//
//		type : 'POST',
//		data : {
//			caseId : id
//		},
//		error : function(data) {
//			danger(data.errorInfo);
//		},
//		success : function(data) {
//			if(data.flag == 0){
//				//获取数据中下拉框的数据
//				getSelectListData(id);
//			}else{
//				danger(data.errorInfo);
//			}
//		}
//	});
}
function set_a_value(th) {// th this用来获取属性值，ys就是整个元素对象
	if (th.max) {
		if (th.value == '') {
			var info = "<div style='color:black;'>输入值不能为空！</div>";
			if (th.attributes.currentValue) {
				th.value = th.defaultValue;
			} else if (th.attributes.min) {
				th.value = th.attributes.min.value;
			} else {
				th.value = 0;
			}
			warning(info);
			return;
		}
		// 当输入框的输入内容不在有效范围内，则提示重新输入
		if (Number(th.value) > Number(th.max)
				|| Number(th.value) < Number(th.min)) {
			var info = "<div style='color:black;'>请输入有效范围的数字:" + th.min + "-"
					+ th.max + "</div>";
			if (th.defaultValue) {
				th.value = th.defaultValue;
			} else {
				th.value = 0;
			}
			warning(info);
			return false;
		}
	}
	saves();
	//当切换下拉框时，绘图显示变动
	//按键输入、平调信号、色灯信号
	if(th && th.attributes && th.attributes.code){
		if(th.attributes.code.nodeValue == "007001003"||th.attributes.code.nodeValue == "004004001"){
			getParentDataByChild(th.attributes.id.nodeValue,th.selectedOptions[0].innerText);
		}
		//只有切换JTC信号控件的色灯时，控件的名字跟随切换的色灯名字变化；切换初始化LKJ控件的色灯不改变控件名称
		if(selectTargetData && selectTargetData.code && selectTargetData.code == "004002" && th.attributes.code.nodeValue == "004002002"){
			getParentDataByChild(th.attributes.id.nodeValue,th.selectedOptions[0].innerText);
		}
		//当改变时间时时，绘图显示变动
		if(th.attributes.code.nodeValue == "010001001"){//时间输入
			getParentDataByChild(th.attributes.id.nodeValue,"延时"+th.value+"s");
		}
		//切换条件控件中的数据项
		if(th.attributes.code.nodeValue == "009001003"){
			var selectObjData = null;
			for(var i = 0;i<shuJuAllDataArray.length;i++){
				if(shuJuAllDataArray[i].code == th.selectedOptions[0].id){
					selectObjData = shuJuAllDataArray[i];
					break;
				}
			}
			setConditionElementType(th.attributes.id.nodeValue,selectObjData);
			canvasClick();
			//解决条件控件中的数据项下拉框切换后，同步更新改变的结果值属性的value的改变
			saves();
		}
		//LKJ换装控件中软件类型和文件名称的切换联动
		if(th.name == "007016002"){
			//获取联动的文件名称的数据
			getLKJByType($("select[name='007016002']").val());
		}
	}
	
	console.log(caseElements);
}

function setConditionElementType(id,selectObjData){
	for(var i = 0;i<caseElements.length;i++){
		setConditionElementTypeLoop(caseElements[i],id,selectObjData);
	}
}
function setConditionElementTypeLoop(obj,id,selectObjData){
	if(obj.type =='015'){
		var bool = false;
		for(var i = 0;i<obj.conditionList.length;i++){
			for(var j = 0;j<obj.conditionList[i].attributes.length;j++){
				if(obj.conditionList[i].attributes[j].id == id){
					bool = true;
				}
				if(bool){
					if(selectObjData){
						obj.conditionList[i].attributes[4].type = (parseInt(selectObjData.type)+1) +"";
						obj.conditionList[i].attributes[4].dict = selectObjData.dictCode;
					}else{
						obj.conditionList[i].attributes[4].type = "1";
						obj.conditionList[i].attributes[4].dict = null;
					}
					
					return;
				}
			}
		}
		if(bool == false){
			for(var i = 0;i<obj.leftChildrens.length;i++){
				setConditionElementTypeLoop(obj.leftChildrens[i],id,selectObjData);
			}
			for(var i = 0;i<obj.rightChildrens.length;i++){
				setConditionElementTypeLoop(obj.rightChildrens[i],id,selectObjData);
			}
		}
	}else if(obj.type =='016'){
		var bool = false;
		for(var i = 0;i<obj.conditionList.length;i++){
			for(var j = 0;j<obj.conditionList[i].attributes.length;j++){
				if(obj.conditionList[i].attributes[j].id == id){
					bool = true;
				}
				if(bool){
					if(selectObjData){
						obj.conditionList[i].attributes[4].type = (parseInt(selectObjData.type)+1) +"";
						obj.conditionList[i].attributes[4].dict = selectObjData.dictCode;
					}else{
						obj.conditionList[i].attributes[4].type = "1";
						obj.conditionList[i].attributes[4].dict = null;
					}
					
					return;
				}
			}
		}
		if(bool == false){
			for(var i = 0;i<obj.childrens.length;i++){
				setConditionElementTypeLoop(obj.childrens[i],id,selectObjData);
			}
		}
	}
}

// 点击右侧保存按钮方法修改全局变量caseElements
function saves() {
	// 拿到右侧所有属性所在的div
	var currentAttributes = selectTargetData.attributes;
	for (var i = 0; i < currentAttributes.length; i++) {
		//基本用中不对外部参数进行编辑
		if(currentAttributes[i].required == "1"){
			continue;
		}
		var newValue = "";
		var displayValue = "";
		var dic = "";// 动态dic
		if (currentAttributes[i].type == "1"
				|| currentAttributes[i].type == "2") {
			if ($('#' + currentAttributes[i].id).val() == ""
					|| $('#' + currentAttributes[i].id).val() == "null") {
				newValue = "";
			} else {
				newValue = $('#' + currentAttributes[i].id).val();
			}
			currentAttributes[i].displayValue = newValue;
			currentAttributes[i].value = newValue;
		} else if (currentAttributes[i].type == "2") {
			if (currentAttributes[i].atrributeId == "78") {// 条件组合
				currentAttributes[i].childrenAttr = packagingCondition();// 封装到这个集合中
			} else {
				if ($('#' + currentAttributes[i].id).length > 0
						&& $('#' + currentAttributes[i].id)[0].selectedOptions.length > 0) {
					var aaa = $('#' + currentAttributes[i].id)[0].selectedOptions[0].id;
					newValue = aaa == "" ? $('#' + currentAttributes[i].id)[0].value
							: aaa;
				} else {
					newValue = "";
				}
			}
			currentAttributes[i].displayValue = newValue;
			currentAttributes[i].value = newValue;
		} else if (currentAttributes[i].type == "3") {
			var str = $('#' + currentAttributes[i].id).val();
			for(var j = 0;j<currentAttributes[i].dicMu.length;j++){
				if(str == currentAttributes[i].dicMu[j].id){
					newValue = currentAttributes[i].dicMu[j].name;
				}
			}
			displayValue = str;
			currentAttributes[i].value = str;
			currentAttributes[i].displayValue = newValue;
		}else if (currentAttributes[i].type == "4") {
        	var idListStr = "";
        	var nameListStr = "";
			var selectdOption = $("select.multipleSelect");
			if(selectdOption.length>0){
				for(var j=0;j<selectdOption[0].length;j++){
					if(selectdOption[0][j].selected){
						if(idListStr == ""){
							idListStr+=currentAttributes[i].dicMu[j].id;
							nameListStr+=currentAttributes[i].dicMu[j].name;
						}else{
							idListStr+=","+currentAttributes[i].dicMu[j].id;
							nameListStr+=","+currentAttributes[i].dicMu[j].name;
						}
					}
				}
			}
			newValue = idListStr;
			displayValue = nameListStr;
			currentAttributes[i].value = newValue;
			currentAttributes[i].displayValue = displayValue;
		}else if (currentAttributes[i].type == "5") {//时间控件
			var str = $('#' + currentAttributes[i].id).val();
			if(str!=-1){
				while(str.indexOf(" ")>=0){
					str = str.replace(' ',"");
				}
				while(str.indexOf("-")>=0){
					str = str.replace('-',"");
				}
				while(str.indexOf(":")>=0){
					str = str.replace(':',"");
				}
			}
			newValue = str;
		}else if(currentAttributes[i].type == 6){
			var attrName = currentAttributes[i].name;
			if (attrName == "007004003" || attrName == "007004004"
					|| attrName == "007004010" || attrName == "007004011"
					|| attrName == "007004013" || attrName == "007004014"
					|| attrName == "007004015" || attrName == "001003001"
					|| attrName == "011001006") {
				currentAttributes[i].value = newValue;
				if ($('#' + currentAttributes[i].id)[0].selectedOptions.length == 0) {// 当没有数据时，为空
					dic = [ {
						id : newValue,
						name : ""
					} ];
					displayValue = "";
				} else {
					dic = [ {
						id : newValue,
						name : $('#' + currentAttributes[i].id)[0].selectedOptions[0].text
					} ];
					displayValue = $('#' + currentAttributes[i].id)[0].selectedOptions[0].text;
				}

				currentAttributes[i].dic = dic;
				currentAttributes[i].displayValue = displayValue;
			} else if ($('#' + currentAttributes[i].id).is('select')) {
				//lkj控件中文件名称和软件类型联动特殊处理
				if(attrName = "007016001"){
					var str = $('#' + currentAttributes[i].id).val();
					for(var j = 0;j<storeVersionByType.length;j++){
						if(str == storeVersionByType[j].VERSION_ID){
							newValue = storeVersionByType[j].VERSION_NAME;
						}
					}
					displayValue = str;
					currentAttributes[i].value = str;
					currentAttributes[i].displayValue = newValue;
				}else{
					currentAttributes[i].value = newValue;
					// 如果是其他下拉菜单,则将displayValue存储
					if ($('#' + currentAttributes[i].id)[0].selectedOptions.length == 0) {
						displayValue = "";
					} else {
						displayValue = $('#' + currentAttributes[i].id)[0].selectedOptions[0].text;
					}
					currentAttributes[i].displayValue = displayValue;
				}
			}
		}
	}
}
// 根据基本用例id从后台查询基本用例的基本信息
function getBaseCaseByCaseId(addBaseCaseId) {// 根据ID查到整个tr的信息
//	$.ajax({
//		url : '../../../basecase/queryBaseCaseList',
//		type : 'POST',
//		data : {
//			pageSize : 10,
//			pageNumber : 1,
//			sortName : 'ID',
//			sortOrder : 'desc',
//			caseId : addBaseCaseId
//		},
//		success : function(data) {
//			if (data.flag == "0") {
//				baseCaseData = data.content.list;// 拿到新增用例的信息数据
//			} else {
//				return [];
//			}
//		},
//		error : function() {
//			return [];
//		}
//	});
}
// 手风琴效果
function accordion() {
	$("#accordionso").click(function() {
		$("#accordionso").css({
			"background-color" : "#337AB7",
			"color" : "white",
			"cursor" : 'default'
		});
		$("#accordionst").css({
			"background-color" : "rgb(12,27,46)",
			"color" : "#b4b2b2",
			"cursor" : 'pointer'
		});
		$("#basecase").css("display", "none");
		$("#easyui").css("display", "block");
		initButton(taskState);
		rightParameter();
		$("html,body").animate({scrollTop:0},5);
		$("#canvasDiv").animate({scrollTop:0},5);
	});
	$("#accordionst").click(function() {
		$("#accordionst").css({
			"background-color" : "#337AB7",
			"color" : "white",
			"cursor" : 'default'
		});
		$("#accordionso").css({
			"background-color" : "rgb(12,27,46)",
			"color" : "#b4b2b2",
			"cursor" : 'pointer'
		});
		$("#easyui").css("display", "none");
		$("#basecase").css("display", "block");
		$("html,body").animate({scrollTop:0},5);
		$("#canvasDiv").animate({scrollTop:0},5);
		rightParameter();
	});
}

function initButton(status) {
	//baseCaseEditeBool = false;
	//if (roleButton().indexOf("jbylsh") != -1 && status == 1) {// 基本用例为提交未审核才展示审核按钮
	//	$('#Audit').removeAttr("hidden");
	//	$('#edite').attr("hidden", 'hidden');
	//	$('#submit').attr("hidden", 'hidden');
	//	$('#emptyElements').attr("hidden", 'hidden');
	//	$('#deleteElements').attr("hidden", 'hidden');
	//}
	//if (roleButton().indexOf("jbylbj") != -1 && status == 0 || status == 3) {// 基本用例为未提交才展示保存，提交等按钮
	//	$('#Audit').attr("hidden", 'hidden');
	//	$('#edite').removeAttr("hidden");
	//	$('#submit').removeAttr("hidden");
	//	$('#emptyElements').removeAttr("hidden");
	//	$('#deleteElements').removeAttr("hidden");
	//	baseCaseEditeBool = true;
	//}

	//if (roleButton().indexOf("jbylsh") != -1 && status == 2) {// 基本用例为提交未审核才展示审核按钮
	//	$('#Audit').attr("hidden", 'hidden');
	//	$('#edite').attr("hidden", 'hidden');
	//	$('#submit').attr("hidden", 'hidden');
	//	$('#emptyElements').attr("hidden", 'hidden');
	//	$('#deleteElements').attr("hidden", 'hidden');
	//}
}
function rightParameter() {// 根据用户权限判断让右侧的参数修改和不可修改
	if ($("#edite").attr("hidden") == undefined) {// 有权限时功能可用
		$("#elementContents .conditionTemplate select").removeAttr("disabled");
		$("#elementContents .conditionTemplate input").removeAttr("readOnly");

		$("#externalParameter select").removeAttr("disabled");
		$("#externalParameter input").removeAttr("readOnly");
	} else {// 没有权限时，按钮禁用，功能隐藏
		$("#elementContents input").attr("readOnly", "true");
		$("#elementContents select").attr("disabled", "disabled");

		$("#externalParameter input").attr("readOnly", "true");
		$("#externalParameter select").attr("disabled", "disabled");
	}
}

// 删除元素或者清空元素后，重置右侧的控件信息
function resetMsg() {
	$("#caseNamee").empty();
	$("#elementContents").empty();
	$('#conDescription').empty(); // 清空控件说明描述内容
	$('#outParameter').empty();// 清空外部参数内容
}

// 当条件数》=1时，则关系比不能为空
function updateRelationData() {
	if ($('#elementContents').find('.addCondition').length != 0) {
		$('.conditionsTemplate').find('.andor').empty();
		$('.conditionsTemplate').find('.andor').append(
				"<option>and</option><option>or</option>");
		andorVal = 'and';
	} else {
		$('.conditionsTemplate').find('.andor').empty();
		$('.conditionsTemplate').find('.andor').append("<option></option>");
		andorVal = '';
	}
}

function formatDateTime(inputTime) {
	var date = new Date(inputTime);
	var y = date.getFullYear();
	var m = date.getMonth() + 1;
	m = m < 10 ? ('0' + m) : m;
	var d = date.getDate();
	d = d < 10 ? ('0' + d) : d;
	var h = date.getHours();
	h = h < 10 ? ('0' + h) : h;
	var minute = date.getMinutes();
	var second = date.getSeconds();
	minute = minute < 10 ? ('0' + minute) : minute;
	second = second < 10 ? ('0' + second) : second;
	return y + '-' + m + '-' + d + ' ' + h + ':' + minute + ':' + second;
}

//时间格式校验
function checkDateTime(date) {
	var reg = /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/;
	var r = date.match(reg);
	if (r != null || date == '-1') {
		return true;
	} else {
		warning("输入格式不正确，请按yyyy-MM-dd HH:mm:ss的格式输入！");
		return false;
	}
}
//获取uuid数组,type:0初始化，type=1：添加UUID
function getUUID(type) {
	//获取数据中下拉框的数据
	getSelectListData(addBaseCaseId);
//	$.ajax({
//		type : 'POST',
//		url : '../../../common/getUUID',
//		data : {
//			num : 1000
//		},
//		dataType : 'json',
//		asyn : false,
//		success : function(data) {
//			if (data.flag == 0) {
//				exportRaw('text.txt',data.content);
//				UUIDList = UUIDList.concat(data.content);
//				if(type == 0){
//					//获取数据中下拉框的数据
//					getSelectListData(addBaseCaseId);
//				}
//			} else {
//				warning(data.errorInfo);
//			}
//		},
//		error : function(data) {
//			danger(data.errorInfo);
//		}
//	});
}

//获取条件控件中数据项的下拉切换时的结果值位置的数据格式状态信息
function getShuJuXiangMsg(){
	shuJuAllDataArray = [{"dictCode":null,"code":"2","type":"0"},{"dictCode":null,"code":"3","type":"0"},{"dictCode":"027","code":"4","type":"2"},{"dictCode":null,"code":"5","type":"0"},{"dictCode":null,"code":"7","type":"0"},{"dictCode":null,"code":"1","type":"0"},{"dictCode":null,"code":"26","type":"0"},{"dictCode":"023","code":"6","type":"2"},{"dictCode":null,"code":"8","type":"0"},{"dictCode":null,"code":"9","type":"0"},{"dictCode":null,"code":"10","type":"0"},{"dictCode":null,"code":"15","type":"0"},{"dictCode":"028","code":"12","type":"2"},{"dictCode":null,"code":"17","type":"0"},{"dictCode":null,"code":"18","type":"0"},{"dictCode":null,"code":"19","type":"0"},{"dictCode":null,"code":"20","type":"1"},{"dictCode":null,"code":"21","type":"0"},{"dictCode":null,"code":"22","type":"0"},{"dictCode":"049","code":"23","type":"2"},{"dictCode":null,"code":"24","type":"0"},{"dictCode":null,"code":"25","type":"0"},{"dictCode":"043","code":"36","type":"2"},{"dictCode":"055","code":"41","type":"2"},{"dictCode":"055","code":"42","type":"2"},{"dictCode":"055","code":"43","type":"2"},{"dictCode":"055","code":"44","type":"2"},{"dictCode":"055","code":"45","type":"2"},{"dictCode":"055","code":"46","type":"2"},{"dictCode":"055","code":"47","type":"2"},{"dictCode":"055","code":"48","type":"2"},{"dictCode":"055","code":"49","type":"2"},{"dictCode":"055","code":"50","type":"2"},{"dictCode":"055","code":"51","type":"2"},{"dictCode":"055","code":"52","type":"2"},{"dictCode":"055","code":"53","type":"2"},{"dictCode":"055","code":"54","type":"2"},{"dictCode":"055","code":"55","type":"2"},{"dictCode":null,"code":"71","type":"0"},{"dictCode":null,"code":"72","type":"0"},{"dictCode":null,"code":"73","type":"0"},{"dictCode":null,"code":"74","type":"0"},{"dictCode":null,"code":"75","type":"0"},{"dictCode":"201","code":"101","type":"2"},{"dictCode":"202","code":"102","type":"2"},{"dictCode":"203","code":"103","type":"2"},{"dictCode":"204","code":"104","type":"2"},{"dictCode":"205","code":"105","type":"2"},{"dictCode":"206","code":"106","type":"2"},{"dictCode":null,"code":"81","type":"0"},{"dictCode":null,"code":"82","type":"0"},{"dictCode":"073","code":"90","type":"2"},{"dictCode":"075","code":"590","type":"2"},{"dictCode":"075","code":"591","type":"2"},{"dictCode":"075","code":"592","type":"2"},{"dictCode":"075","code":"593","type":"2"},{"dictCode":"075","code":"594","type":"2"},{"dictCode":"075","code":"595","type":"2"},{"dictCode":"075","code":"596","type":"2"},{"dictCode":"075","code":"597","type":"2"},{"dictCode":"075","code":"598","type":"2"},{"dictCode":"075","code":"599","type":"2"},{"dictCode":"201","code":"501","type":"2"},{"dictCode":"201","code":"502","type":"2"},{"dictCode":"201","code":"503","type":"2"},{"dictCode":"201","code":"504","type":"2"},{"dictCode":"201","code":"505","type":"2"},{"dictCode":"201","code":"506","type":"2"},{"dictCode":"201","code":"507","type":"2"},{"dictCode":"201","code":"508","type":"2"},{"dictCode":"201","code":"509","type":"2"},{"dictCode":"201","code":"510","type":"2"},{"dictCode":"201","code":"511","type":"2"},{"dictCode":"201","code":"512","type":"2"},{"dictCode":"201","code":"513","type":"2"},{"dictCode":"201","code":"514","type":"2"},{"dictCode":"201","code":"515","type":"2"},{"dictCode":"201","code":"516","type":"2"},{"dictCode":"201","code":"517","type":"2"},{"dictCode":"201","code":"518","type":"2"},{"dictCode":"201","code":"520","type":"2"},{"dictCode":"201","code":"521","type":"2"},{"dictCode":"201","code":"522","type":"2"},{"dictCode":"201","code":"523","type":"2"},{"dictCode":"201","code":"524","type":"2"},{"dictCode":"201","code":"525","type":"2"},{"dictCode":"201","code":"526","type":"2"},{"dictCode":"201","code":"527","type":"2"},{"dictCode":"201","code":"528","type":"2"},{"dictCode":"201","code":"529","type":"2"},{"dictCode":"201","code":"530","type":"2"},{"dictCode":"201","code":"531","type":"2"},{"dictCode":"201","code":"532","type":"2"},{"dictCode":"201","code":"533","type":"2"},{"dictCode":"201","code":"534","type":"2"},{"dictCode":"201","code":"535","type":"2"},{"dictCode":"201","code":"536","type":"2"},{"dictCode":"201","code":"537","type":"2"},{"dictCode":"201","code":"538","type":"2"},{"dictCode":"201","code":"539","type":"2"},{"dictCode":"201","code":"540","type":"2"},{"dictCode":"201","code":"541","type":"2"},{"dictCode":"201","code":"542","type":"2"},{"dictCode":"201","code":"543","type":"2"},{"dictCode":"201","code":"544","type":"2"},{"dictCode":"201","code":"545","type":"2"},{"dictCode":"201","code":"546","type":"2"},{"dictCode":"201","code":"547","type":"2"},{"dictCode":"201","code":"548","type":"2"},{"dictCode":"201","code":"549","type":"2"},{"dictCode":"201","code":"550","type":"2"},{"dictCode":"201","code":"551","type":"2"},{"dictCode":"201","code":"552","type":"2"},{"dictCode":"201","code":"553","type":"2"},{"dictCode":"201","code":"554","type":"2"},{"dictCode":"201","code":"555","type":"2"},{"dictCode":"201","code":"556","type":"2"},{"dictCode":"201","code":"557","type":"2"},{"dictCode":"201","code":"558","type":"2"},{"dictCode":"201","code":"559","type":"2"},{"dictCode":"201","code":"560","type":"2"},{"dictCode":"201","code":"561","type":"2"},{"dictCode":"201","code":"562","type":"2"},{"dictCode":"201","code":"563","type":"2"},{"dictCode":"201","code":"564","type":"2"},{"dictCode":"201","code":"565","type":"2"},{"dictCode":"201","code":"566","type":"2"},{"dictCode":"201","code":"567","type":"2"},{"dictCode":"201","code":"568","type":"2"},{"dictCode":"201","code":"569","type":"2"},{"dictCode":"201","code":"570","type":"2"},{"dictCode":"201","code":"571","type":"2"},{"dictCode":"201","code":"572","type":"2"},{"dictCode":"201","code":"573","type":"2"},{"dictCode":"201","code":"574","type":"2"},{"dictCode":"201","code":"575","type":"2"},{"dictCode":"201","code":"576","type":"2"},{"dictCode":"201","code":"577","type":"2"},{"dictCode":"201","code":"578","type":"2"},{"dictCode":"201","code":"579","type":"2"},{"dictCode":"201","code":"580","type":"2"},{"dictCode":"201","code":"581","type":"2"},{"dictCode":"201","code":"582","type":"2"},{"dictCode":"201","code":"583","type":"2"},{"dictCode":"201","code":"584","type":"2"},{"dictCode":"201","code":"585","type":"2"},{"dictCode":"201","code":"586","type":"2"},{"dictCode":"201","code":"587","type":"2"},{"dictCode":"201","code":"588","type":"2"},{"dictCode":"201","code":"589","type":"2"}];
	
	return;
//	$.ajax({
//		async:false,
//		cache:false,
//		type:'POST',
//		dataType:'json',
//		url:'../../../basecase/getCondition',
//		error : function(data) {
//			danger(data.errorInfo);
//		},
//		success : function(data) {
//			console.log(data);
//			if(data.flag == 0){
//				exportRaw('text.txt',JSON.stringify(data.content));
//				shuJuAllDataArray = [{"dictCode":null,"code":"2","type":"0"},{"dictCode":null,"code":"3","type":"0"},{"dictCode":"027","code":"4","type":"2"},{"dictCode":null,"code":"5","type":"0"},{"dictCode":null,"code":"7","type":"0"},{"dictCode":null,"code":"1","type":"0"},{"dictCode":null,"code":"26","type":"0"},{"dictCode":"023","code":"6","type":"2"},{"dictCode":null,"code":"8","type":"0"},{"dictCode":null,"code":"9","type":"0"},{"dictCode":null,"code":"10","type":"0"},{"dictCode":null,"code":"15","type":"0"},{"dictCode":"028","code":"12","type":"2"},{"dictCode":null,"code":"17","type":"0"},{"dictCode":null,"code":"18","type":"0"},{"dictCode":null,"code":"19","type":"0"},{"dictCode":null,"code":"20","type":"1"},{"dictCode":null,"code":"21","type":"0"},{"dictCode":null,"code":"22","type":"0"},{"dictCode":"049","code":"23","type":"2"},{"dictCode":null,"code":"24","type":"0"},{"dictCode":null,"code":"25","type":"0"},{"dictCode":"043","code":"36","type":"2"},{"dictCode":"055","code":"41","type":"2"},{"dictCode":"055","code":"42","type":"2"},{"dictCode":"055","code":"43","type":"2"},{"dictCode":"055","code":"44","type":"2"},{"dictCode":"055","code":"45","type":"2"},{"dictCode":"055","code":"46","type":"2"},{"dictCode":"055","code":"47","type":"2"},{"dictCode":"055","code":"48","type":"2"},{"dictCode":"055","code":"49","type":"2"},{"dictCode":"055","code":"50","type":"2"},{"dictCode":"055","code":"51","type":"2"},{"dictCode":"055","code":"52","type":"2"},{"dictCode":"055","code":"53","type":"2"},{"dictCode":"055","code":"54","type":"2"},{"dictCode":"055","code":"55","type":"2"},{"dictCode":null,"code":"71","type":"0"},{"dictCode":null,"code":"72","type":"0"},{"dictCode":null,"code":"73","type":"0"},{"dictCode":null,"code":"74","type":"0"},{"dictCode":null,"code":"75","type":"0"},{"dictCode":"201","code":"101","type":"2"},{"dictCode":"202","code":"102","type":"2"},{"dictCode":"203","code":"103","type":"2"},{"dictCode":"204","code":"104","type":"2"},{"dictCode":"205","code":"105","type":"2"},{"dictCode":"206","code":"106","type":"2"},{"dictCode":null,"code":"81","type":"0"},{"dictCode":null,"code":"82","type":"0"},{"dictCode":"073","code":"90","type":"2"},{"dictCode":"075","code":"590","type":"2"},{"dictCode":"075","code":"591","type":"2"},{"dictCode":"075","code":"592","type":"2"},{"dictCode":"075","code":"593","type":"2"},{"dictCode":"075","code":"594","type":"2"},{"dictCode":"075","code":"595","type":"2"},{"dictCode":"075","code":"596","type":"2"},{"dictCode":"075","code":"597","type":"2"},{"dictCode":"075","code":"598","type":"2"},{"dictCode":"075","code":"599","type":"2"},{"dictCode":"201","code":"501","type":"2"},{"dictCode":"201","code":"502","type":"2"},{"dictCode":"201","code":"503","type":"2"},{"dictCode":"201","code":"504","type":"2"},{"dictCode":"201","code":"505","type":"2"},{"dictCode":"201","code":"506","type":"2"},{"dictCode":"201","code":"507","type":"2"},{"dictCode":"201","code":"508","type":"2"},{"dictCode":"201","code":"509","type":"2"},{"dictCode":"201","code":"510","type":"2"},{"dictCode":"201","code":"511","type":"2"},{"dictCode":"201","code":"512","type":"2"},{"dictCode":"201","code":"513","type":"2"},{"dictCode":"201","code":"514","type":"2"},{"dictCode":"201","code":"515","type":"2"},{"dictCode":"201","code":"516","type":"2"},{"dictCode":"201","code":"517","type":"2"},{"dictCode":"201","code":"518","type":"2"},{"dictCode":"201","code":"520","type":"2"},{"dictCode":"201","code":"521","type":"2"},{"dictCode":"201","code":"522","type":"2"},{"dictCode":"201","code":"523","type":"2"},{"dictCode":"201","code":"524","type":"2"},{"dictCode":"201","code":"525","type":"2"},{"dictCode":"201","code":"526","type":"2"},{"dictCode":"201","code":"527","type":"2"},{"dictCode":"201","code":"528","type":"2"},{"dictCode":"201","code":"529","type":"2"},{"dictCode":"201","code":"530","type":"2"},{"dictCode":"201","code":"531","type":"2"},{"dictCode":"201","code":"532","type":"2"},{"dictCode":"201","code":"533","type":"2"},{"dictCode":"201","code":"534","type":"2"},{"dictCode":"201","code":"535","type":"2"},{"dictCode":"201","code":"536","type":"2"},{"dictCode":"201","code":"537","type":"2"},{"dictCode":"201","code":"538","type":"2"},{"dictCode":"201","code":"539","type":"2"},{"dictCode":"201","code":"540","type":"2"},{"dictCode":"201","code":"541","type":"2"},{"dictCode":"201","code":"542","type":"2"},{"dictCode":"201","code":"543","type":"2"},{"dictCode":"201","code":"544","type":"2"},{"dictCode":"201","code":"545","type":"2"},{"dictCode":"201","code":"546","type":"2"},{"dictCode":"201","code":"547","type":"2"},{"dictCode":"201","code":"548","type":"2"},{"dictCode":"201","code":"549","type":"2"},{"dictCode":"201","code":"550","type":"2"},{"dictCode":"201","code":"551","type":"2"},{"dictCode":"201","code":"552","type":"2"},{"dictCode":"201","code":"553","type":"2"},{"dictCode":"201","code":"554","type":"2"},{"dictCode":"201","code":"555","type":"2"},{"dictCode":"201","code":"556","type":"2"},{"dictCode":"201","code":"557","type":"2"},{"dictCode":"201","code":"558","type":"2"},{"dictCode":"201","code":"559","type":"2"},{"dictCode":"201","code":"560","type":"2"},{"dictCode":"201","code":"561","type":"2"},{"dictCode":"201","code":"562","type":"2"},{"dictCode":"201","code":"563","type":"2"},{"dictCode":"201","code":"564","type":"2"},{"dictCode":"201","code":"565","type":"2"},{"dictCode":"201","code":"566","type":"2"},{"dictCode":"201","code":"567","type":"2"},{"dictCode":"201","code":"568","type":"2"},{"dictCode":"201","code":"569","type":"2"},{"dictCode":"201","code":"570","type":"2"},{"dictCode":"201","code":"571","type":"2"},{"dictCode":"201","code":"572","type":"2"},{"dictCode":"201","code":"573","type":"2"},{"dictCode":"201","code":"574","type":"2"},{"dictCode":"201","code":"575","type":"2"},{"dictCode":"201","code":"576","type":"2"},{"dictCode":"201","code":"577","type":"2"},{"dictCode":"201","code":"578","type":"2"},{"dictCode":"201","code":"579","type":"2"},{"dictCode":"201","code":"580","type":"2"},{"dictCode":"201","code":"581","type":"2"},{"dictCode":"201","code":"582","type":"2"},{"dictCode":"201","code":"583","type":"2"},{"dictCode":"201","code":"584","type":"2"},{"dictCode":"201","code":"585","type":"2"},{"dictCode":"201","code":"586","type":"2"},{"dictCode":"201","code":"587","type":"2"},{"dictCode":"201","code":"588","type":"2"},{"dictCode":"201","code":"589","type":"2"}];
//			}else{
//				danger(data.errorInfo);
//			}
//		}
//	});
}

//根据select的code获取当前select下拉框的内容
function getSelectListByCode(code){
	var dict = [];
	for(var i = 0;i<selectAllListData.length;i++){
		if(selectAllListData[i].code == code){
			dict = selectAllListData[i].dict;
			break;
		}
	}
	return dict;
}
//基本用例中的快捷键复制粘贴和删除添加成功提示
function book(str){
	$('#alertText').html(str);
    $('#myModal').modal('show');
    setTimeout(function(){
        $("#myModal").modal("hide");
    },1200);
}
//画布高度根据增删改查控件后可以自适应
function resetCanvasHeight(){
	if (caseElements.length > 0) {
		if(caseElements[caseElements.length - 1] && caseElements[caseElements.length - 1].y){
			if((caseElements[caseElements.length - 1].y + caseElements[caseElements.length - 1].height)+150 > 750){
				mycanvas.height = caseElements[caseElements.length - 1].y
				+ caseElements[caseElements.length - 1].height + 150;
			}
		}else if(caseElements[caseElements.length - 2] && caseElements[caseElements.length - 2].y){
			if((caseElements[caseElements.length - 2].y + caseElements[caseElements.length - 2].height)+150 > 750){
				mycanvas.height = caseElements[caseElements.length - 2].y
				+ caseElements[caseElements.length - 2].height + 150;
			}
		}
	}
}

//Ctrl+c ctrl+v 快捷键复制粘贴功能
function keydown(e){
	if(!baseCaseEditeBool){
		return;
	}
	if(event.ctrlKey == 1) {
		if(document.all) {
			k = e.keyCod;
		} else {
			k = e.which;
		}
		if(k == 86) {//粘贴
			if(!baseCaseEditeBool){
				danger("当前不可复制粘贴！");
				return;
			}
			if((copyObj&&copyObj.length>0)||(storageBaseCase&&storageBaseCase.length>0)){
				
			}else{
				danger("请先复制再粘贴！");
				return;
			}
			var pasteObj;
			if(copyObj!=null && copyObj.length>0){
				pasteObj = [].concat(JSON.parse(JSON.stringify(copyObj)));
			}else if(storageBaseCase!=null && storageBaseCase.length>0){
				pasteObj = [].concat(JSON.parse(JSON.stringify(storageBaseCase)));
			}
			if(checkUp(pasteObj,selectLoctionX,selectLoctionY)){
				// 当前拖拽控件赋值，包括id
				updateTargetId(pasteObj[0]);
				//重置所有元素为不选中状态
				resetSelected();
				// 根据鼠标拖拽放置的点坐标，更新caseElements数据
				updateCaseElements(pasteObj[0], selectLoctionX, selectLoctionY);
				context.clearRect(0, 0, mycanvas.width, mycanvas.height);
				for (var i = 0; i < caseElements.length; i++) {
					setDrawSize(caseElements[i]);
				}
				resetCanvasHeight();
				// 绘制图形
				drawProcessChart(caseElements);
				console.log(caseElements);
				book("粘贴成功！");
			}else{
				danger("控件不能粘贴到此处！");
			}
		}
		if(k == 67) {//复制
			if(!baseCaseEditeBool){
				danger("当前不可复制粘贴！");
				return;
			}
			copyObj = [].concat(JSON.parse(JSON.stringify(selectTargetData)));//点击的元素对象
			window.localStorage.setItem("storageBaseCase", JSON.stringify(selectTargetData));
			book("复制成功！");
			getUUID(1);
		}
	}
	
	if(e.code == 'Delete'){//删除键点击
		if(!baseCaseEditeBool){
			danger("当前不可编辑！");
			return;
		}
		book("删除成功！");
		resetMsg();
		selectTargetData = null;
		delectSelectTargetById(selectTargetId,true);
		context.clearRect(0, 0, mycanvas.width, mycanvas.height);
		for (var i = 0; i < caseElements.length; i++) {
			setDrawSize(caseElements[i]);
		}
		resetCanvasHeight();
		drawProcessChart(caseElements);
	}
}

//松开按键监听
function keyup(e){
//	console.log(111);
}

//元素在画布上移动事件,参数ev事件源，currentObj拖动的对象，elementTypes元素类型
function dragover(ev) {
	var x = ev.offsetX;
	var y = ev.offsetY;
	// 当前拖拽控件赋值，包括id
	var dragable = checkUp(currentObj,x,y);
	if (dragable) {
		ev.dataTransfer.dropEffect = "move";
	} else {
		ev.dataTransfer.dropEffect = "none";
	}
	ev.stopPropagation(); // 阻止冒泡事件
	ev.preventDefault(); // 清除默认事件
}

//判断是否可以放置控件
function checkUp(dragData, x, y) {
	var bool = false;
	if(caseElements.length<=0){
		bool = true;
		return bool;
	}
	for (var i = 0; i < caseElements.length; i++) {
		var obj = checkPostionTargetObj(dragData, caseElements[i], x, y, null, null, i,1);
		if(obj!=null){
			bool = true;
			break;
		}
	}
	return bool;
}

//复制对象修改id
function updateTargetId(obj){
	obj.id = UUIDList.shift();
	for (var j = 0; j < obj.attributes.length; j++) {
		obj.attributes[j].id = UUIDList.shift();
	}
	for(var i = 0;i<obj.childrens.length;i++){
		updateTargetId(obj.childrens[i]);
	}
	for(var i = 0;i<obj.leftChildrens.length;i++){
		updateTargetId(obj.leftChildrens[i]);
	}
	for(var i = 0;i<obj.rightChildrens.length;i++){
		updateTargetId(obj.rightChildrens[i]);
	}
	for(var i = 0;i<obj.conditionList.length;i++){
		updateTargetId(obj.conditionList[i]);
	}
}

//检查基本用例数据中色灯循环控件是否选择色灯，检查基本用例分支和循环控件是否有条件
function checkCaseElements(caseElements){
	var bool = true;
	for(var i = 0;i<caseElements.length;i++){
		bool = checkCaseElementsLoop(caseElements[i]);
		if(!bool){
			break;
		}
	}
	return bool;
}
//检查基本用例数据中色灯循环控件是否选择色灯，检查基本用例分支和循环控件是否有条件
function checkCaseElementsLoop(obj){
	var bool = true;
	//色灯循环
	if(obj.code == "016001"){
		if(obj.attributes[1].value == ""){
			bool = false;
			failMsg = "色灯循环控件中色灯信号不能为空！";
			return bool;
		}
		
		for(var i = 0;i<obj.childrens.length;i++){
			checkCaseElementsLoop(obj.childrens[i]);
		}
	//分支控件
	}else if(obj.code == "015001"){
		if(obj.conditionList.length<=0){
			bool = false;
			failMsg = "分支控件中条件不能为空！";
			return bool;
		}
		for(var i = 0;i<obj.leftChildrens.length;i++){
			checkCaseElementsLoop(obj.leftChildrens[i]);
		}
		for(var i = 0;i<obj.rightChildrens.length;i++){
			checkCaseElementsLoop(obj.rightChildrens[i]);
		}
	//循环控件
	}else if(obj.code == "016002"){
		if(obj.conditionList.length<=0){
			bool = false;
			failMsg = "循环控件中条件不能为空！";
			return bool;
		}
		for(var i = 0;i<obj.childrens.length;i++){
			checkCaseElementsLoop(obj.childrens[i]);
		}
	//循环等待
	}else if(obj.code == "016003"){
		if(obj.conditionList.length<=0){
			bool = false;
			failMsg = "循环等待控件中条件不能为空！";
			return bool;
		}
		for(var i = 0;i<obj.childrens.length;i++){
			checkCaseElementsLoop(obj.childrens[i]);
		}
	}
	return bool;
}

//在画布上拖动用例元素改变位置并重新绘制所有元素信息
function dragElement(e){
	if(e.buttons == 1){
		dropPointTarget = {
				x:e.offsetX,
				y:e.offsetY
			};
		dragFlag = true;
	}else{
		dragFlag = false;
	}
}

function fakeClick(obj) {
  var ev = document.createEvent("MouseEvents");
  ev.initMouseEvent("click", true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
  obj.dispatchEvent(ev);
}

function exportRaw(name, data) {
  var urlObject = window.URL || window.webkitURL || window;
  var export_blob = new Blob([data]);
  var save_link = document.createElementNS("http://www.w3.org/1999/xhtml", "a")
  save_link.href = urlObject.createObjectURL(export_blob);
  save_link.download = name;
  fakeClick(save_link);
} 
